Of course it takes more processor power to make a (xml + xsl) -> html
conversion rather than printing just html, but I haven't really had any
performance issues with my applications.
I don't really have the issue with learning the HTML people another
language,
because, well, I am the html guy as well... :) But yes, you have to think
differently when designing a page using XSL and it does take more time, but
once you start to get the hang of it, you'll start to enjoy the benefits XSL
provides.
And XSL is perfect for seperating the logic from the design and you can
easily
change the whole layout without touching one line of your servlet code :)
[ Matthias Carlsson ]
[ Programmer (Java, CGI/Perl, Javascript, HTML) ] [ Web Designer ]
[ E-Mail : [EMAIL PROTECTED] ] [ ICQ: 1430647 ]
> -----Ursprungligt meddelande-----
> Från: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]För G.Nagarajan
> Skickat: den 22 december 2000 10:12
> Till: [EMAIL PROTECTED]
> Ämne: Re: SV: when should I use servlet instead of jsp?
>
>
> How about the performance issues? We thought that doing xml->html
> conversion
> would take more time than printing html.
>
> Another reason would be making the html ppl learn XSL. It is difficult to
> get them to use CVS and if you tell XML + XSL -> HTML, they will start
> having nightmares in their sleep :-).
>
> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
> Matthias Carlsson
> Sent: Thursday, December 21, 2000 11:59 PM
> To: [EMAIL PROTECTED]
> Subject: SV: SV: when should I use servlet instead of jsp?
>
>
> I generate a XML-document inside the servlet, as an Object yes. I then
> use this object with the static XSL-document to generate the HTML which
> is sent to the browser (request.getWriter()).
>
> [ Matthias Carlsson ]
> [ Programmer (Java, CGI/Perl, Javascript, HTML) ] [ Web Designer ]
> [ E-Mail : [EMAIL PROTECTED] ] [ ICQ: 1430647 ]
>
> > -----Ursprungligt meddelande-----
> > Fran: A mailing list for discussion about Sun Microsystem's Java Servlet
> > API Technology. [mailto:[EMAIL PROTECTED]]For Hubert Rabago
> > Skickat: den 21 december 2000 19:28
> > Till: [EMAIL PROTECTED]
> > Amne: Re: SV: when should I use servlet instead of jsp?
> >
> >
> > Do you create an actual XML document, or just the object holding
> > the XML data?
> > If you create the XML file, when does it get erased?
> >
> >
> >
> >
> >
> > Matthias Carlsson <[EMAIL PROTECTED]> on
> > 12/21/2000 11:34:45
> > AM
> >
> > Please respond to "A mailing list for discussion about Sun
> > Microsystem's Java
> > Servlet API Technology." <[EMAIL PROTECTED]>
> >
> > To: [EMAIL PROTECTED]
> > cc: (bcc: Hubert Rabago/GIRC/SVI)
> >
> > Subject: SV: when should I use servlet instead of jsp?
> >
> >
> >
> >
> > When I was using a servlet/jsp-solution to create web application some
> > time ago I put all the code logic inside the servlets. The servlets then
> > put the "data" they gathered inside some classes I wrote and
> then I added
> > that
> > class to the request object before redirecting to the JSPs.
> >
> > Nowadays I use XML/XSL to separate the code from the logic. The servlets
> > gather the data and create the XML-document (DOM) and then use a static
> > XSL-document to generate the HTML.
> >
> > I never really liked to use JSP, since I always ended up with
> (confusing)
> > code in the HTML anyway. In the above example, you still ended up with
> > lots of classInstance.getValue()-methods, like:
> >
> > <%! MyBean myBean = (MyBean)request.getAttribute("mybean"); %>
> > <html>
> > <head>
> > <title> <%= myBean.getTitle() %> </title>
> > </head>
> > <body>
> > Hello, <%= myBean.getUser() %>.
> > </body>
> > </html>
> >
> > etc.. (the actual JSP syntax might be wrong, haven't used it
> for a while).
> >
> > [ Matthias Carlsson ]
> > [ Programmer (Java, CGI/Perl, Javascript, HTML) ] [ Web Designer ]
> > [ E-Mail : [EMAIL PROTECTED] ] [ ICQ: 1430647 ]
> >
> > > -----Ursprungligt meddelande-----
> > > Fran: A mailing list for discussion about Sun Microsystem's
> Java Servlet
> > > API Technology. [mailto:[EMAIL PROTECTED]]For Jim Cheesman
> > > Skickat: den 21 december 2000 09:19
> > > Till: [EMAIL PROTECTED]
> > > Amne: Re: when should I use servlet instead of jsp?
> > >
> > >
> > > At 17:52 20-12-00, you wrote:
> > > >Hi List,
> > > >
> > > >It may sound stupid, but that is the nature of a newbie like me.
> > > >I wonder if there is anything only can be accomplished by servlet.
> > > >I know jsp is indeed servlet, but I just don't want putting HTML
> > > >in my java code.
> > >
> > >
> > >
> > >
> > > IMHO the main difference is that jsp is focused on
> > designers/presentation,
> > > and that servlets should be focused on strictly server-side
> > > issues - it's a
> > > lot easier to add presentation logic to a jsp than to a servlet,
> > > and it's a
> > > lot easier to design a flexible, upgradeable, maintainable servlet.
> > >
> > >
> > >
> > > As an aside, how do people go about developing jsp's? My main
> > process so
> > > far has been:
> > > 1. Think about what output I'm expecting
> > > 2. Code a jsp with lots of java code inside to acheive this
> > > 3. Check the output conforms
> > > 4. Start removing code (refactoring, if you like) to tags
> > > 5. Check again
> > >
> > > (I'm obviously ignoring the main system design here - the
> > > serlvets/beans/db/etc. that supports the jsp.)
> > >
> > > The main problem with this (as I see it) would come in a
> situation where
> > > the designer was distinct from the coder. For those of you in this
> > > situtation, how do you get round this?
> > >
> > >
> > > Happy Christmas (or insert your own favourite festival here) to all!
> > >
> > > Jim Cheesman
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > >
> > > * Jim Cheesman *
> > > Trabajo: [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
> > > Personal: [EMAIL PROTECTED] (34) 654 153 160
> > > All the things I really like to do are either immoral, illegal or
> > > fattening.
> > > --Alexander Woollcott
> > >
> > > __________________________________________________________________
> > > _________
> > > To unsubscribe, send email to [EMAIL PROTECTED] and include
> > > in the body
> > > of the message "signoff SERVLET-INTEREST".
> > >
> > > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > > Resources:
http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
>
> __________________________________________________________________
> _________
> To unsubscribe, send email to [EMAIL PROTECTED] and include
> in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> __________________________________________________________________
> _________
> To unsubscribe, send email to [EMAIL PROTECTED] and include
> in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html