Solved

JSP-XML-SERVLET

Posted on 2003-11-12
5
288 Views
Last Modified: 2010-04-01
I have a JSP page (say page A) wherein i get certain values from the user and when the user clicks the button "preview" the form posts the data to a servlet which generates an xml file. Now the problem is, i have generated an xml file for which i need to display it in the JSP (say page B) inside which there is a table. One of the table's cell should contain the xml file's preview just like u see an xml file while opening in a browser. Is this possible. pls reply imm
0
Comment
Question by:kamal_psg
5 Comments
 
LVL 3

Accepted Solution

by:
krispols earned 83 total points
ID: 9738166
hello kamal_psg,

Of course it's possible, xml file is text file, just replace return cariage by '<br>' and then display the file in the cell of your table.

regards
0
 
LVL 15

Expert Comment

by:dualsoul
ID: 9738714
hm...do you need tree-view like in IE?
if so, use XSLT to transform.
0
 
LVL 14

Assisted Solution

by:kennethxu
kennethxu earned 82 total points
ID: 9740083
another quick hack will be using frame, and let your xml file in a frame by itself.

if your audiences all use IE, you can use iframe to get what you want easily.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

While it may be true that the internet is a place of possibilities, it is also a hostile environment lurking with many dangers. By clicking on the wrong link, trusting the wrong person or using a weak password, you are virtually inviting hackers to …
Building a cohesive image for your brand is vital to making an impression on consumers. When the economy is tough, brands do better than unbranded  products. This can have a huge impact on your long-term profits, as the economy goes up and down.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question