You can use the ActionForward to send you to a jsp page which contains a tag
(or tags) which do any one of the following:

1) A Tag/Action calls business objects which in turn get xml, transform the
xml using a stylesheet, and slaps the resulting html in the space where the
tag sits on the jsp page

2) A Tag/Action calls business objects which in turn get xml, transform the
xml using a stylesheet, puts the result in a bean which is retrieved by the
Tag/Action

3) A Tag/Action calls business objects which in turn get xml, puts the xml
result in a bean which is retrieved and iterated over by the Tag/Action

4) Tag/Action calls business objects which return return xml, which is
transformed on the Tag/Action level using a stylesheet

The point is:
You can start with xml and stay with xml up to the web layer and do
transforms there
You can start with xml, transform in the lower layer, and send html up to
the web layer
You can start with regular string data, make a dom, and send it around (I
dont recommend this)
etc. etc. etc.

>From experience, I recommend that if you are actually going to need to work
with xml, DONT USE STYLESHEETS, but rather make "model" objects from the xml
which you can iterate over.


----- 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