You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Matthias Fischer <mf...@gmx.de> on 2007/07/03 17:17:43 UTC

Re: How to convert a list of object to XML

Hi,
> >From reading the javadoc in the org.apache.struts2.views.xslt package,
> I believe yet another option would be to create a custom AdapterNode 
> class for your Book object and register it with the XSLT AdapterFactory.  If 
> I read it correctly, Struts2 would use your BookAdapterNode class to render 
> the XML.  If you named your method, getBooks, this may give you the xml that you 
> are looking for.
>   
Does anyone of you understand how I can register the custom 
AdapterFactory? The Javadoc says I have to call the register method in 
AdapterFactory, but where in my code do I do this... where is it 
instantiated? Any ideas?

Matthias

-- 
-------------------------------------------------------------------
Matthias Fischer                   Fon: +49-7541-6047-148
doubleSlash Net-Business GmbH      Fax: +49-7541-6047-111
Müllerstr. 12 B                    matthias.fischer@doubleSlash.de
D-88045 Friedrichshafen            http://doubleSlash.de
-------------------------------------------------------------------
doubleSlash Net-Business GmbH
Geschäftsführung: Konrad Krafft, Oliver Belikan, Jan Schubert
Sitz, Registergericht: Friedrichshafen, Amtsgericht Ulm HRB 631718
-------------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org