Chainlu,

One thing you can do is replace all quotes by the html equivalent before
printing out the form- such as " (I think that's it...). So you'll
just need to write a little parser function that does that replacement
for you.

-Matt Tucker

Chainlu Sharma wrote:
>
> Hi
> I have a minor hitch in a HTML form generated thru
> servlet.[method=POST]
> One of the elements of the text field is 'TEXT'.
> The code for the same is
> <td bgcolor=#FFFFFF><INPUT TYPE=text name=\"Synopsis\" size=85
> MAXLENGTH=79  value='"+synopsis+"'></td>");
>
> where synopsis is the parameter/text entered by the user.
>
> The problem is :
> When the text contains singlequote('), on generating the page thru
> servlet the text upto the first occurence of ' is displayed.
> Soliciting urgent help in this regard.[ Really confused - the show
> stopper].
> Thanx in advance.
> Regards
> ___________________________________________________________________________
> 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

--
-------------------------------
         Matt Tucker
     [EMAIL PROTECTED]
 http://cs.uiowa.edu/~matucker

      See CoolServlets:
  http://www.coolservlets.com
-------------------------------

___________________________________________________________________________
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