You need quotes around the VALUE value:

out.println("    <td bgcolor=999999><input type=text name=\"Synopsis\"
size=85 MAXLENGTH=79 value=\""+ synopsis +"\"></td>");

If you look at the HTML outputed the way you had it, the end of the line
would've looked like:
...MAXLENGTH=79 value=This is synopsis></td>

But with quotes, as I've shown above, it will look like:
...MAXLENGTH=79 value="This is synopsis"></td>



> -----Original Message-----
> From: Chainlu Sharma [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, February 25, 1999 10:58 AM
> To:   [EMAIL PROTECTED]
> Subject:      Resending text field value
>
> Hi
> I am having a small problem .
> I am reading the values from a form .
>
> String synopsis  =req.getParameter("Synopsis");
> fetches the value This is synopsis entered in the textbox.[Confirmed using
> print statement].
>
> But on servlet response to the field, the statement
> out.println("    <td bgcolor=999999><input type=text name=\"Synopsis\"
> size=85 MAXLENGTH=79 value="+ synopsis +"></td>");
>
> prints only  This ?
> Any Help?
> Thanx in advance.
> Chainlu
>
> __________________________________________________________________________
> _ 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