Can someone please help with this problem. I have a search field in a JSP page. when the submit button is pressed the servlet responds appropriately. However if 'Enter" is pressed with caret in search field, I get "javax.servlet.ServletException"
From the stack trace you can see that line 73 is calling a method called "forward". Perhaps Kwame is trying to forward to a URL that is blank, or something like that. Investigating the URL would be what I would do next.
Is it possible for you to post your servlet code? It would be helpful.
SCJP, SCWCD, SCJWS, IBM 700,IBM 701, IBM 704, IBM 705, CA Clarity Technical<br /> <br /><a href="http://eddyleesinti.blogspot.com" target="_blank" rel="nofollow">http://eddyleesinti.blogspot.com</a>
posted 14 years ago
Thanks guys. This is the servlet code:
...and this is the block of html from the jsp page
recall that this all works perfectly when the "Find" button is clicked with mouse, but not when "Enter" is pressed on keyboard!!!
i noticed something. when "Enter" is pressed, the URL dosen't containt the name of the "Find" button, which is "search", but this is included in the url when the button is explicitly clicked on!? [ March 19, 2006: Message edited by: kwame Iwegbue ]