hi

store the value of variable u want to display in text box in a variable.
when u generate the html through servlets use this variable to write the
input tag for text box
for ex
String name="somename";

PrintWriter out=res.getwriter();
out.println("<html>");
out.println("<body>");
out.println("<form action=''>");
out.println("<input type=text name=abc value="+name+">");
out.println("</form>");
out.println("</body>");
out.println("/<html>");

Vinay

----- Original Message -----
From: mudigonda phanichand <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 28, 2000 8:30 PM
Subject: How to display servlet results in textboxes of html page


> friends,
>
>         I am stuck up with a problem here,I am trying to retrieve the
database query results as part of servlet.well,there is no problem with
servlet functioning and database connectivity,but i am unable to put those
results in textboxes of html page(the variables which are used for storing
the results),inspite of specifying <input type="text" name="xy"
value=Variablename>.
> Is there any solution for this,if so kindly help me out,i am working on
this for 2 days,and i could not get a solution.
>
> One more thing,is there any method to display the query results in same
html page which activates the servlet?(instead of displaying in different
page which servlet generates.).
>
> final question,my problem is i am having a dropdown list to choose item
from a category,and here,as per the item chosen,the details should be
displayed.Here,which method should i specify in the html form(GET/POST).My
choice from the dropdown list should be POSTED to the servlet,and details
should be RETRIEVED from the servlet.
>
> Any help or hints would be appreciated.
>
> if any one needs code,give me their email id,i would mail them.
>
>                   Bye..
>                                 phani..
>
>
>
> Send FREE Greetings for Father's Day--or any day!
> Click here: http://www.whowhere.lycos.com/redirects/fathers_day.rdct
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to