Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing strings with (" and ')

Status
Not open for further replies.

riches85

Programmer
Nov 13, 2002
59
US
I have a form that takes a persons height and passes it to another jsp that pulls the height from the request object and uses it to make an entry into the database. Now whenever someone enters 6'2" etc I get a null pointer exception. I know it has to do with the quotations, but i have no idea how to avoid having the user input 6\'\". Does anyone have any suggestions? Thanks
 
Remove or replace (escape) them from the parameter string before using it to update the database. The Regular Expressions API would be great for that solution.

-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top