You want something like:

out.println("<b>"+"username: "+"</b>"+"<INPUT
Type=\"text\" NAME=\"t1\" VALUE=\""+x+"\">");

Notice the use of \ to delimit the " character.

Andy C
Editor The r2 Project
http://www.r2-dvd.org

----- Original Message -----
From: "s saravanan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 28, 2000 1:41 PM
Subject: can u help me?


> Hi everybody,
>
>       I don't know how to display the values in textfield in the servlet
> program. I want the 'x' value(see the program) to be printed in the
> textfield 't1'.
>
>      Can u help on this immediately!!!

>      String x=rs.getString(1);
>      //out.println(x);
>      out.println("<br>");
>      out.println("<b>"+"username: "+"</b>"+"<input type=text name=t1 >");

___________________________________________________________________________
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