Try the JSP reference card at:
http://java.sun.com/products/jsp/tags/tags.html
Therein, the two examples shown are:

     <jsp:forward page="/servlet/login" />

     <% String whereTo = "/templates/"+someValue; %>
     <jsp:forward page="<%= whereTo %>" />


--- Paul Reiber <[EMAIL PROTECTED]> wrote:
> Hello all!
>
> We're using JSP1.0 under JWS2.0beta2.
>
> We've been trying to get "page forwarding" working.
> Specifically, to get
> one JSP page to simply forward over to another JSP
> page without doing a
> round-trip to the client browser.
>
> The simplest JSP file I've come up with for this is
> a 2-liner that says:
> <%@ page language="java" %>
> <jsp:request forward="http://hostname/.../other.jsp"
> />
>
> When I hit the page, after the "recompile delay" I
> get:
>
> Error during JSP page parsing
> Unknown exception: java.lang.IllegalStateException:
> Can not forward to
> servlet jspServlet : OutputStream or writer has been
> obtained
>
> ...At first, I thought this was because of the stuff
> above the redirect
> being sent as HTML, but I've eliminated almost
> everything!
>
> So, What am I missing?
>
> Thanks in advance for your guidance!
> -Paul Reiber
>
>
===========================================================================
> 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".
>

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

===========================================================================
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