Click to See Complete Forum and Search --> : Redirecting using servlet


zoro85
06-22-2005, 05:17 AM
how to redirect a from using java servlet please help...

Karthikeyan
06-22-2005, 05:35 AM
From JSP to Servlet.. ? or Servlet to JSP .. ?

If you want to send the form values from JSP to servlet,

1) submit the form
2) Now get the values from request object available in Servlet

Cheers...

zoro85
06-22-2005, 07:46 AM
servlet to JSP

because JSP uses response.sendRedirect
but then servlet gives an error when i compile ... so i was wondering what was the code to replace that

Karthikeyan
06-29-2005, 12:51 AM
Try to explore RequestDispatcher, you can get the solution..