Pascal Guilloteau wrote:

> How can I pass DATA (including Beans) to a JSP from a JSP in 0.92
> I konw it seems to be easy from a servlet with
> the forward method of getReqeustDispacher()
>  but I don't know to do that from a JSP ?
>

In JSP 1.0, you can use <jsp:forward page="..." /> which just uses a
RequestDispatcher internally.  Any bean you've declared with scope of request,
session, or application is visible to the destination page under the same name
as you declared it in the origin page.  You don't have to "do" anything to
make this sharing happen, other than declare the beans with <jsp:usebean>
tags.

I don't remember much (or care much anymore) about JSP 0.92, but you can
probably just embed the same code you would use in a servlet:

    <%
        RequestDispatcher rd =
getServletContext().getRequestDispatcher("/newpage.jsp");
        rd.forward(request, response);
    %>

Again, any bean with session, or application scope is visible at the
destination page (I don't think 0.92 had request scope, did it?).

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