I imagine http://jakarta.apache.org/regexp/ might be interesting for you...
hth, tomK > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: vrijdag 30 november 2001 2:08 > To: Struts Users Mailing List > Subject: Does struts provide a function to escape special > characters received from a form? > > > Hi Ladies and Gentlemen > > I want to insert data into a database. I have the database > connection > set up and in the case of data without special characters the insert > works fine. > However, the data is coming from a form on a html page and > the user can > insert special characters, in particualar characters like > > \ > ' > > cause a problem when I try and insert into the database since > they are not > escaped when I construct the query which is put into the > database. Does > Struts provide function/s which can help with inserting text > from a html > form into a database. > How do other people handle this situtation? > > Cheers > > Tony > > > > -- > To unsubscribe, e-mail: > <mailto:struts-user-> [EMAIL PROTECTED]> > For > additional commands, > e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

