SoftTeam Blas Catherine wrote:

>  With ASP, we have Response.Redirect("Page2.asp"). What is the
> equivalent in JSP ? Thanks

If you really want the second round trip to the client browser, the
equivalent JSP code will look like this:

    <%
      response.sendRedirect("...");
    %>

Or, you can do a server-side forwarding by doing this instead:

    <jsp:forward page="..." />

This is faster because it avoids the extra network round trip, and you
can pass attributes in "request" scope from the current page to the new
one.

The latter technique can also be used to forward from a servlet to a
JSP page, by using RequestDispatcher.forward().

Craig McClanahan

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to