Hi, i am having problem with RequestDispatcher. I have a jsp. which has two buttons. On pressing button1 the form values are submitted to the same jsp and the query is fired and the table is displayed which has check boxes. Now the button2 appears, which submits the form values to a servlet. The checkboxes values are taken and entered into the database. After the values are entered, the servlet sends the request object back to the same jsp page by using RequestDispatcher interface. i need this because i want to show the user that which check boxes he had checked are the ones entered in database.
When i right click the page, i get to see the servlet path like CONTEXTNAME/SERVLET/JSPNAME. ok fine didnt have any problem with that. The problem comes when i press button1 to get other search values, to post the form to the same jsp. It says page not found because it is searching the jsp in the servlet directory. While if i press button2, the form goes to the correct servlet. I can use response.sendRedirect(), but dont wanna do that, coz its much better and faster using a RequestDispatcher interface. Is there any work around for this problem. Could some java gurus throw some light. Thanks in advance, Vikramjit Singh. =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
