> Instead, I prefer to segregate all my business logic (but zero
> HTML generation)
> into servlets, which can use EJBs when appropriate or other
> techniques (such as
> direct JDBC access) when EJBs are not necessary.  I use beans to
> communicate the
> processing results back to an appropriate JSP page for display, using
> RequestDispatcher.forward() to transfer control.

hmm, why don't you use beans in the jsps which have a processRequest(httpreq
req) method, that gets called automatically with the request object, you can
do whatever you want in it, access EJB or whatever you want, then you store
the stuff you want to display into variables with getter method and your jsp
will display them, there is no java code in the jsp and you don't have to
create html in your servlet or bean or whatever. and you don't have to
bother with requestdispacther and such

just my 2 cents
AndySoft

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