i have a question about response.sendRedirect.
the code provided on the page below is:
<% String ls_Absolute_Url = ("http://" + request.getHeader("host") +
"/home/Default.jsp");
/* redirection by browser request */
response.sendRedirect(ls_Absolute_Url);
%>
my question is, where do you insert this code, at the beginning or the end?
in my application, from the original html page, there a number of links off it.
each link leads to a form which is handled by a jsp file. i want the user to be
able to click on each link, fill in and submit the forms one by one and have the
output from each form sent to a new page, call it report.jsp, where the results
generated by all of the forms will be displayed in one place.
is response.sendRedirect the way to go, or is there an easier/better way of
doing this?
thanks,
maurice
> Check out:
> http://www.jspinsider.com/reference/jspredirection.html
> for a complete page long description of the differences
>
> in a nutshell
> response.sendRedirect("web/welcome.jsp") is how to have your client's
> browser request a new page.
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: redirect and forward, the difference
Maurice Coyle - Sun ireland - Software Products and Platforms - Internationalization Engineer Fri, 11 Aug 2000 06:47:55 -0700
