Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to read an XML file using JSP?  RSS feed

 
Sudharshan Reddy Ch
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've an XML file like



How can i read the user details from that XML file using JSP?

Please help me.

Thanks,
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks like jstl has XML related custom actions. Have a look at them. I have not used them as such but that would be a good place to start.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To what end?

This sounds like something that should happen in a controller prior to the JSP gaining control.

But, if you must do it in the JSP, we'll need to know what you intend to do with the data before we can make any suggestions as to what is the best way to digest the XML.

It might be that the JSTL tags for dealing with XML are best, but Ajax may also be a viable solution.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!