My suggestion would be that your action should forward you to a jsp page
that has a custom tag in it.  That tag could do 1 of 2 things:
1) search for a bean in the request which has the pre generated html result
from a stylesheet transformation
2) get, process and display the transformed data using an Action class
The xsl transformation can happen before returning from the action, or
during the perform() method of the action.  We are doing something similar
here.  We took the road of letting the framework generate a result which
ends up a a long html string which gets slapped into the area the tag was
sitting in.  Now that I have gone through this, I would not use stylesheets
for display.  I would rather recommend the developer to get an object filled
with hashtable like results, and iterate through the results.  I would do
this with a custom tag.


----- Original Message -----
From: "Sean Pau" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 14, 2001 12:53 PM
Subject: RE: XML Data out of a property into an XSL Transformation by
JSP-Tag


> me too looking for something similar. Looking for Struts to generate XML
and
> passthrough XSLT to transform to HTML, WAP, PDF etc. Is Cocoon a solution?
> Is there something lighter, simpler but with the Cocoon caching mechanism?
> Or is servlet filter a solution? Thanks
>
> -----Original Message-----
> From: Hartmut Bernecker [mailto:[EMAIL PROTECTED]]
> Sent: Monday, 14 May, 2001 11:21 PM
> To: [EMAIL PROTECTED]
> Subject: XML Data out of a property into an XSL Transformation by
> JSP-Tag
>
>
> Has anyone integrated struts with XML/XSL by populating a property with
> XML-data and processing this data with XSLT and by using a custom
> JSP-Tag.
>
> With other words: Is there a good way to include an XSLT-Output into a
> JSP page?
> Have you a sample code?
>
> TIA
> Hartmut Bernecker
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>

Reply via email to