Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Parse XML File For Name and Value Pair  RSS feed

 
James Ellis
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to stick to JSTL, but I need to parse an XML file and retrieve a name/value pair from it and I am having trouble. The xml file is pretty simple:



What I want to be able to do is when a user submits a request, take the form paramter "report_title" and use this value to lookup the name of the report. For instance, if report_title=campaign_report, then I would display on the page "Campaign Summary Report".

This would be pretty easy to do with a .properties file but I am trying to stick to JSTL.

Thanks,
Jim
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!