hi Brad,
I had the same confusion , the best approach is:
Assume that your web app could have a lot of interfaces
The Web Interface is th most obvious thing..
Lets say it could also have a WAP interface... and so on..
Anyway the point I want to drive home is that the Data is the same , but the
GUI in a WAP and a Browser is entirely different...
Hence we would have to find a mechanism to differentiate the Model from the
View.
And this is done using a Controller..(could be a servlet, or could be a EJ
bean ..which say returns results and the respective JSPs render HTML...)
but from a programmers point of view..utlimately even a JSP is converted in
to a servlet and hence one might argue that ,why not do some processing in
the JSPs too..
But what if the interface changes ??? you might have to touch all the code
you had already written (in JSP)?
Is it worth ? just because the  GIU changed ?

Hope this gives you some pointers...

Cheers,
Nagraj


-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Brad Miley
Sent: Tuesday, July 18, 2000 10:59 AM
To: [EMAIL PROTECTED]
Subject: JSP and Servlet application flow


I am confused as to the best approach to:
use servlets for generating data and flow and use jsp for presentation only.
What is the advantage of using a servlet to generate data compared with
using a jsp to generate data and then forwarding that information to another
jsp which displays the results?
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

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

Reply via email to