Solved

JSP-XML-SERVLET

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
Is your company's data protection keeping pace with virtualization? Here are 7 dynamic ways to adapt to rapid breakthroughs in technology.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

707 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