The draw backs are you have no way of reusing this functionality when you
put it into a JSP page. It's a bitch to debug JSP files as opposed to
servlets and in general you end up with ugly difficult to read code.
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Bolt, Dave
> Sent: Monday, September 11, 2000 9:20 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Model 2, replacing servlet with an "all-code" JSP?
>
>
> The J2EE blueprints use this approach for the front component. You can
> download or
> purchase the J2EE blueprints book. The download is somewhere on the J2EE
> site at
> http://java.sun.com The Java Pet Store sample app uses an approach like
> this.
>
> Dave Bolt
> ATSC/SPAWAR ASAT Team
> Bolt's Law of Bandwidth - There is always plenty of network
> bandwidth, just
> none for you.
>
>
> -----Original Message-----
> From: JavierG [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 11, 2000 11:08 AM
> To: [EMAIL PROTECTED]
> Subject: Model 2, replacing servlet with an "all-code" JSP?
>
>
> Hi out there:
>
> When using Model 2, can't I replace the servlet used as controller for an
> "all-code" JSP, that is, a JSP that begins with <% and ends with %> and no
> HTML or out statements whatsoever? My point is that coding that
> way could be
> easier and faster (much less typing) being as they are a lot of objects
> predefined and the main parts of the servlet to whish the JSP is
> translated
> being automatically generated by the JSP engine. Any drawbacks to this
> approach? Any comments, ideas, critics, etc, would be greatly
> appreciated...
>
> J.
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets