Hi,
I have a
servlet that processes a simple search after a user submits a
string through a form. It works perfectly except when an ' is included. For example: O'toole. When it's included I get a NullPointerException.
I've tried to redirect the exception in my servlet like this:
In the results.jsp page, I check for the error as such:
Finally, here is the error message I get:
Any help with this would be greatly appreciated!!
Thanks,
Jason