Solved

JSP-XML-SERVLET

Posted on 2003-11-12
5
284 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
communication with a non technical owner 16 100
reflections, dynamic class loading 3 66
dateFashion java challenge 9 132
thymeleaf natural templating vs JSP 2 67
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
In 2017, ransomware will become so virulent and widespread that if you aren’t a victim yourself, you will know someone who is.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

911 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now