Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How a Xml output sent to JSP from servlet parsed and displayed?

 
jacob deiter
Ranch Hand
Posts: 584
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How a Xml output sent to JSP from servlet and at the JSP ,XML to be parsed and displayed??
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13056
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Assuming the servlet can create a temporary file, it can record the file location in the session.
2. For transforming the XML document to some format, look into XSLT - there is probably a tag library to support this.

I suggest you dont try to get everything working at once, proceed step by step.

Bill
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or, you might explore the JSTL XML tags.
 
Eric Belec
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check this out. It has an example of reading xml.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eric Belec wrote:Check this out. It has an example of reading xml.

That article is from 2000 and shows it! It's chock full of Java scriptlets. We've come a long way since then.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic