Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-20-2008, 10:38 AM
Member
 
Join Date: May 2008
Posts: 14
hussainzim is on a distinguished road
show a value in javascipt in the jsp page
hi..i hav hav retrieved the value from servlet using ajax and now i want to show that value in table in jsp..how can i do that..below is the code of ma solution..thank u in advance...


java scirpt

Code:
function callbackUsername() { if (req.readyState==4) { if (req.status == 200) { //currently ir prints in the document without any problem..i want to print this in ma table.. document.write(req.responseText); } else { } }
-----------------------------------------
table in jsp
--------------------------------------
HTML Code:
<FORM name="myForm" Action="MyServlet" METHOD="Post"> <table width="100%" height="360" border="0" align="left"bgcolor="#EAEEFB" hspace="0" vspace="0"> <tr bgcolor="#5C92EB"> <th width="50" scope="col"><span class="style2">UserName</span></th> <th width="50" scope="col"><span class="style2">First Name</span></th> <th width="50" scope="col"><span class="style2">Last Name</span></th> <th width="50" scope="col"><span class="style2">E-Mail</span></th> </tr> <tr bgcolor="#5C92EB"><td><center>"_*I WANT TO SHOW THE VALUE HERE*_"</td></tr><% </table>
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Go back to previous page using session in JSP page gopikarikati009 JavaServer Pages (JSP) and JSTL 0 04-27-2008 05:38 AM
How to Show Calendar praveen.kb AWT / Swing 2 02-09-2008 09:23 AM
netbeans 6.0 not show commpunent or show blank page fahimaamir NetBeans 1 01-26-2008 07:20 AM
Problems getting Graph to show rhivka New To Java 6 07-31-2007 06:21 AM
show a RTF FORMAT Jack Advanced Java 2 07-04-2007 04:37 AM


All times are GMT +3. The time now is 09:17 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org