tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "fong" <f...@shunkam.com>
Subject Re: JSP Form Problem
Date Sat, 05 Oct 2002 02:25:28 GMT
Hi

I had got this problems before.

I think your jsp may be connect to database. This occur because the
apostrophe symbol insert to your sql statement.

Fong

----- Original Message -----
From: "Seth Brahler" <spb32@cornell.edu>
To: <tomcat-user@jakarta.apache.org>
Sent: Saturday, October 05, 2002 1:54 AM
Subject: JSP Form Problem


> I know this is a Tomcat list, but my back is against the wall and I'm
> hoping someone can help.
>
> I just discovered that my form breaks if the user types in an apostrophe.
>
> On the process page, i am setting the passed variable to a string.
> "filelocation" is the name of my text field:
>
> String filelocation = request.getParameter("filelocation");
>
> How can I stop this from happening? There may be times when the user has
to
> use the apostrophe symbol (obviously).
>
> Thank you.
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message