I believe there is a way to separate content logic and design with JSPs.
JSP has kinda similarities with XML because the JSP tags follow the XML
syntax. You can also define your own JSP tags using tag libraries.
But there are not enough examples about how to use tag libraries, so if
you have some, share them ;-) In fact I have developed a web application
with JSPs and faced with some lack of examples/doc about this technology.
You can read Sun's point of view on http://www.javasoft.com/jsp
The right thing will be I think to combine the best of both worlds.
Generate your XML with JSP:
<?xml version="1.0" ?>
<%@ page language="java" import="mypackage.*" %>
<jsp:useBean id="myBean" scope="session" class="SessionBean" />
<?xml-stylesheet type="text/xsl" href="<%=myBean.getXSLFileName() %>" ?>
<mytag>
.....
</mytag>
Then, the browser requests a JSP file, returning XML content, which can
link with an XSL stylesheet as shown above.
Some clients are able to display such XML files (Mozilla, IE5).
In order to display HTML for older clients, tag libraries may be used,
enabling the page to be easily migrated to XML later.
In case of static data, XML only should be used, and the server can
generate HTML from XML files using the Cocoon servlet (see
http://xml.apache.org/cocoon/).
I'd like to hear your opinion, I'll subscribe to jsp-interest to
know more about it !
------------------------------------------------
Sylvain Randier CSE student
------------------------------------------------
Universite de Technologie de Compiegne (UTC)
60200 Compiegne - France
------------------------------------------------
60, Acorn Circle, #103 Tel: (410) 769 8407
Towson MD21286 USA ICQ#: 48432988
------------------------------------------------
On Wed, 19 Jan 2000, Mick Chang wrote:
> I kind of disagree that JSP provide a separation of presentation and content
> logic.
> I hear people talk about it, but I've yet to see a good demo that scales
> with it.
> Most people I've heard from think that a more scalable way to separate
> presentation from content logic is to use XML served up with Servlets.
>
> If you have a good example of how JSP scale with the separation of
> presentation from the content logic, by all means, share it.
>
> Gracias,
>
> Mick Chang
>
___________________________________________________________________________
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