How can I modify a XML file from JSP?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Txingu_Shagast
Posted On:   Monday, April 10, 2006 05:50 AM

Hi,

I would like to know if it is possible to modify a XML file fron JSP.

I want to have a HTML form to generate new elements in a XML file.

Suppose that this is my XML file (members.xml):

			


txingu
Shagast
Something
admin@server.es
1992






So, I want to add a new member in members.xml using JSP. Is it possible?

thanks, and sorry my english

Re: How can I modify a XML file from JSP?

Posted By:   WarnerJan_Veldhuis  
Posted On:   Monday, April 10, 2006 04:06 PM

You english is fine... Don't try doing that from jsp. You *can*, but you don't want that. Why not? A JSP is for viewing data, not doing all kinds of smart business stuff.... That's whan an EJB of a servlet is for. Move that responsibility to a component that can *handle* the responsibility....



About creating XML: just use a DOMDocument and you'll be fine...
About | Sitemap | Contact