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?

>From servlet api 2.1 on there is a RequestDispatcher interface with
forward(request, response) and include (request, response) methods, so
you can forward on to another resource.Can this be done somehow in 2.0?

I am using Apache1.3.9, with Jserv1.0 something and SJSP (because it has
support for some of the JSP 1.1 features). A problem is that JServ only
supports the 2.0 servlet api...

I think I can work around it by doing an include from the jsp page..


<some jsp stuff first>
blah blah
<jsp:include page="http:/1.1.1.1/someservlet">
and then using...
<jsp:useBean id="put_in_page_by_servlet">

rest of page

But I would rather be able to call the servlet first, to decide where to
redirect to (seems cleaner and more configurable somehow)

Thanks

Jari

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

Reply via email to