This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to make use of XML in JSP  RSS feed

 
geetu hindu
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to make use of XML in JSP. i can write indepent XML but can't make out how to make use of it in JSP.
 
Ramaswamy Srinivasan
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The JSTL provides good features, to import a XML document to the JSP page and operate on it.

The code snippets are

1. Referencing the XML tag library from the code & the standard 'c' library


2. Importing the XML document from a given location.


After these, the variable xmldoc will have the document and it would be available for a range of operations .

Hope this helps.

Cheers,
Ram.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!