Jari Worsley wrote:
> Aaaagh,
>
> having great fun with all the different versions of things flying around
> at the moment :)
>
> Question is:
> Is it possible to do "model 2" style of programming with servlet api2.0?
>
> i.e. if I send a request to a servlet (controller), I then want to
> forward the request to a jsp page (view) after doing some processing in
> the servlet, and adding beans etc to the request/session/application.
>
> How can this be done?
>
Out of the box, the only support in the 2.0 API for this would be to use
sendRedirect(), which has performance impacts. You can pass beans in the user's
session (2.0 did not have request attributes, but they would not work across a
sendRedirect anyway so it is not a big deal).
Some JSP implementations based on 2.0 have implemented custom variations of the
old callPage() method from JSP 0.91 to get around this restriction. Check the
docs on your JSP implementation to be sure what is supported.
Craig McClanahan
===========================================================================
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