You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by SS...@c-a-s.de on 2002/03/25 14:24:42 UTC

Save/Update data to XML-File

Hi,

in the struts-example the user data can be read with the help of a
hashtable an a struts digester.
But whats about updating the data in the xml-file after user changes?
The digester can't do. Is there any possibility with struts to update the
hastable data in the xml-file comfortable.
Or is there a need to do this outside with e.g. jdom and xerces not so
comfortable?

Has somebody an advice or an code example?

Thanks
Susanne


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Save/Update data to XML-File

Posted by Ted Husted <hu...@apache.org>.
The digester is bi-directional, and can create a JavaBean from XML, or
XML from a JavaBean. The RSS digester is a good example. 

http://jakarta.apache.org/commons/digester/commons-digester-1.1.1/docs/api/org/apache/commons/digester/rss/RSSDigester.html

This approach could be used to store user profiles, but I'm not aware of
a published implementation. 

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services


SSteib@c-a-s.de wrote:
> 
> Hi,
> 
> in the struts-example the user data can be read with the help of a
> hashtable an a struts digester.
> But whats about updating the data in the xml-file after user changes?
> The digester can't do. Is there any possibility with struts to update the
> hastable data in the xml-file comfortable.
> Or is there a need to do this outside with e.g. jdom and xerces not so
> comfortable?
> 
> Has somebody an advice or an code example?
> 
> Thanks
> Susanne
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>