![]() |
The Java Developers Almanac 1.4 |
|
e1062. Implementing a Redirect in a JSP PageA redirect in a JSP page is implemented with a call toresponse.sendRedirect() in a scriptlet. Any generated output
must not be flushed before this call, otherwise an exception is thrown.
<%
String redirectURL = "http://hostname.com/";
response.sendRedirect(redirectURL);
%>
e1063. Generating an XML Document from a JSP Page
© 2002 Addison-Wesley. |