This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP and XML question

 
Alfonso Harding
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm working on an application that requires the use of JSP pages and XML data. What is the best way to parse the XML data each time the jsp page is accessed?
thanks
 
Shawn Bayern
Author
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Alfonso Harding:
I'm working on an application that requires the use of JSP pages and XML data. What is the best way to parse the XML data each time the jsp page is accessed?

The JSP Standard Tag Library (JSTL) offers standard tags for parsing and manipulating XML from within a JSP page. For instance, you can parse a document with the <x:parse> tag, loop over parts of it with <x:forEach>, display pieces with <xut>, and so forth. Feel free to post here if you've got any questions, or see the following URLs for more info:
Sun's official JSTL page
Book site for JSTL in Action
[ August 26, 2002: Message edited by: Shawn Bayern ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic