Please join us at the new JavaWorld Q&A Forums. Your existing login will work there. The discussions here are now read-only.


JavaWorld >> XML & Java

Pages: 1
vidsa
stranger


Reged: 09/22/05
Posts: 9
parsing the xml data using jsp how can i
      #22047 - 09/22/05 06:19 AM

i have dom parser java file it is parsing the xml
but i want parsing the xml through jsp.can u give me the steps which are i can follow


Post Extras: Print Post   Remind Me!   Notify Moderator  
Jesper
member


Reged: 07/27/05
Posts: 124
Re: parsing the xml data using jsp how can i [Re: vidsa]
      #22057 - 09/22/05 09:56 AM

The Java code in a JSP is not different from Java code in a class. So the code you use to parse XML is the same in a JSP as in any other Java class.

Post Extras: Print Post   Remind Me!   Notify Moderator  
codefetch
stranger


Reged: 10/14/05
Posts: 6
Re: parsing the xml data using jsp how can i [Re: vidsa]
      #22736 - 10/14/05 04:33 PM

One very simple way without using java code is to use the jstl. This codefetch search for "parse xml" brought up this 16 line xml parsing example from the book JSTL in Action

--------------------
java.codefetch.com

Search for Java source code snippets from dozens of books!


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 25 anonymous users are browsing this forum.

Moderator:   

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 9320

Rate this topic

Jump to

Contact us JavaWorld

Powered by UBB.threads™ 6.5.5