Jeff Brown wrote:
>
> Does anyone know what the equivalent of:
>
> <% Response.Redirect("somepage.html") %>
>
> is in JSP?
The answer to this, and many other questions on this list, is in the
Servlet specification. If you're developing JSP pages with scripting
elements you need to look at the Servlet API as well since all JSP
pages are turned into servlets and have access to the same API. Just
a hint ;-)
Anyway, in JSP you do the same by this way:
<% response.sendRedirect("somepage.html"); %>
In JSP 1.0, you should really use an absolute URL as the argument
according to the specs, but it usually works with a relative URL
as well. In JSP 1.1 a relative URL is okay according to the spec.
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html