• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP / XML question  RSS feed

 
Shreya Menon
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have a small XML file. The structure of the file is like this :
<ADDRESS>
<tag id="company" value="300 N Washington Avenue" />
</ADDRESS>
Now here the "value" attribute is given a static value.
I want to give it The value which is coming from a JSP page, when I submit the page.
ie, if I have String x = request.getParameter("address");
I want to make this String x as the attribute value.
How will I do this ?
My env is
Apache Web Server 1.1.13
Apache JServ1.1
Windows 2000
jdk 1.3.1
I still have to figure out a parser that can be used for my purposes.
Any suggestions.. Please
Thanks,
Maya
 
Brian Glodde
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're looking for a good XML parsing package, I would recommend: http://xml.apache.org/xerces-j/
You'll find enough examples to easily accomplish what you need.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!