Also have a look @
http://java.sun.com/products/jsp/jsp_developer.html
Regards,
Ahmed Aboul-Enein
Software Engineer
Lucent Software Center in Egypt,
Wireless Network Group,
Lucent Technologies Inc.,
1 Road 204, Salah Salem Square,
Degla, Maadi 11435, Cairo, Egypt
e-mail: [EMAIL PROTECTED]
Say what you do and do what you say!
-----Original Message-----
From: Christian Cryder [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 6:55 AM
To: [EMAIL PROTECTED]
Subject: Re: JSP Vs Servlet
I'd say the real difference is philosophical. In plain jane servlets, you
often end up embedding HTML in your Java, which makes it very difficult to
design and maintain the markup portions of an app. With JSP, you can better
design your page, but you often end up embedding Java inside your HTML. Both
plainly leave something to be desired.
What is really needed is a better way to separate code (Java) from content
(*ML) so that your designers can design and your developers can develop.
This process should be able to go on simultaneously, rather than having the
two roles tightly coupled. "Templating" seems to be a common approach to
solving this problem, and there are a whole bunch of different solutions.
Struts is a JSP centric templating framework; Turbine is a servlet centric
approach that uses a template engine like Velocity. I'm working on a project
called Barracuda that takes more of a Component/DOM centric approach to the
problem, where templates are compiled into java DOM objects using a tool
called XMLC, and those objects can be manipulated using a component model
(like in Swing). Ultimately you have to decide which approach is best suited
for your particular needs.
There's a (somewhat dated) document summarizing a lot of the different
approaches at http://barracuda.enhydra.org/Barracuda/docs/landscape.html
Christian
------------------------------------------------
Christian Cryder
[EMAIL PROTECTED]
Barracuda - Open-source MVC Component Framework for Webapps
http://barracuda.enhydra.org
------------------------------------------------
"What a great time to be a Geek"
> > -----Original Message-----
> > From: Ganesh MohanRao [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, April 11, 2001 3:54 PM
> > To: [EMAIL PROTECTED]
> > Subject: JSP Vs Servlet
> >
> >
> > Hi All,
> >
> > I have a basic doubt. I would like to know in what way "Servlet" is
> > advantageous over "JSP".
> >
> > I feel I can do everything in "JSP" that can be done in Servlet.
> >
> > Is there anything which can't be done by JSP and can be done
> > by Servlet?
> >
> >
> > Thank you
> >
> > Ganesh
> >
> > ==============================================================
> > =============
> > To unsubscribe: mailto [EMAIL PROTECTED] with body:
> > "signoff JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set
> > JSP-INTEREST DIGEST".
> > 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".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> 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".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> 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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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