> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> [snip]
> Servlets are great for logic (model manipulations as well as
> flow-of-control
> management), and can be coerced into creating presentation
> (although writing
> out.println() statements with embedded HTML is really
> tiresome). JSPs are great
> for presentation, and can be coerced into performing logic
> (scriptlets). Using
> both for what they are best at will result in applications
> that are more
> resilient in the face of the changes that are guaranteed to
> happen in the
> future.
Your views are valuable on this, thanks for sharing them. I was further
about the problem of passing information from the "logic" servlet to the JSP
file to which it forwards. If the servlet processes the business logic,
many times data will result from that processing which then should be used
in the presentation of the following JSP page. Since there is no way to
pass arguments when forwarding (right?), I assume you must use a session
variable. It seems that there are two cases; one case where the data being
passed is meant to remain in the session, and another case where the data is
only meant for the next page. In the latter case, the JSP page should
therefore delete the session data after it uses it. I was wondering if you
had run into this, and if a particular technique came in handy for you.
thanks!
mark
===========================================================================
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