cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chitharanjan Das" <c...@accordiasys.com>
Subject RE: Servlets to XSL
Date Fri, 25 Jan 2002 00:18:50 GMT

There is on major drawback though,
	If the application have jsps and Servlets. The Context for both
JSP and Servlets have to be the same , if they are using session
management.
In the example depicted below, the Context of servlets and JSP's would
be different, making the session management not possible.
I hope I am clear......


Regds,\
Chiths










-----Original Message-----
From: Bob Garvey [mailto:bobgarvey2@home.com] 
Sent: Thursday, January 24, 2002 2:30 PM
To: cocoon-users@xml.apache.org
Subject: Servlets to XSL

Thanks to Vadim Gritsenko and David Rosenstrauch.
This scheme now works.
Here is what I learned that may be valuable to others who would like to
write servlets that output XML and would like for the XML to be input to
an
XLS Transformation.

The sitemap entry:
   <map:match pattern="servlet23/*">
     <map:generate src="http://cb:8080/examples/servlet/servlet23.{1}"/>
     <map:transform src="stylesheets/servlet23/{1}"/>
     <map:serialize type="html"/>
   </map:match>
---------------------
where
. servlet23 is a package name; this makes the matching straightforward.
. the generate src entry is the servlet as externally referencable: note
that if you address it from a browser you will get xml that you can look
at
for debug
. the stylesheet is pathed from cocoon root.
---------------------------------------------------------------------
Debugging required looking at:
the logs in %tomcathome%\logs
and %tomcathome%\webapps\cocoon\WEB-INF\logs
------------------------------------------------------------------------
---
Thanks to all developers for a great system.

Bob Garvey


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message