Scott Ferguson wrote:

> "Kirkdorffer, Daniel" wrote:
>
> >
> > So an example of the above might be a query that returns 800 rows.  Here is
> > basically what I do (note: I do this stuff in a servlet, because that's the
> > way I architect my JSP systems - JSP>Servlet>JSP):
>
> That's an intereting architecture.  I understand the Servlet -> JSP, but what is
> the first JSP doing?  Is it just a jsp:forward to the appropriate servlet so your
> URLs are more sensible?
>

What I think Dan is saying is that the input form is a JSP page, which *submits* it's
values to a servlet (that is, the <form action="xxx"> URL points at a servlet).  The
servlet then does whatever processing is required, stores beans, and then forwards to
a JSP page to display the results.  This forwarding can be done with
RequestDispatcher.forward(), as long as the servlet engine is 2.1-compatible or
later.

I use the same approach, for the purpose of separating business and presentation
logic.

> Scott Ferguson
> Caucho Technology
>

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

Reply via email to