• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to display XML node values in a Jsp Page  RSS feed

 
silamala ramesh babu
Greenhorn
Posts: 25
Eclipse IDE Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a Xml file like this

<?xml version="1.0" encoding="UTF-8" ?>
- <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
- <soap:Body>
- <ns3:processRouterResponse xmlns:ns2="http://rpo.customer.es.chase.com/" xmlns:ns3="http://webservice.maf.customer.es.chase.com/" xmlns:ns4="http://dto.customer.es.chase.com/">
- <dto>
- <dtoCustomerAccountDetailsList>
- <customerAccountDetailsDto>
<errorMessageText>REQUEST COMPLETED SUCCESSFULLY</errorMessageText>
<accountNumber>00000000000000065540144</accountNumber>
<bankId>0000000079</bankId>
<eci>0000001231</eci>
<productCode>120</productCode>
<relationshipCode>201</relationshipCode>
<subProductCode>010</subProductCode>
</customerAccountDetailsDto>
- <customerAccountDetailsDto>
<errorMessageText>REQUEST COMPLETED SUCCESSFULLY</errorMessageText>
<accountNumber>00000000000000096954666</accountNumber>
<bankId>0000000079</bankId>
<eci>0000001231</eci>
<productCode>120</productCode>
<relationshipCode>201</relationshipCode>
<subProductCode>120</subProductCode>
</customerAccountDetailsDto>
</dtoCustomerAccountDetailsList>
</dto>
</ns3:processRouterResponse>
</soap:Body>
</soap:Envelope>


I need display the values in Jsp like

AccountNumber bankId ProductCode
00000000000000065540144 0000000079 120
00000000000000096954666 0000000079 120
 
Claudiu Chelemen
Ranch Hand
Posts: 75
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

You may use jstl's <x:parse> tag, and then select the desired content using xpath expressions.
There are a lot of examples on the web, found one here, for example.

Cheers,
Claudiu
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!