Solved

JSP-XML-SERVLET

Posted on 2003-11-12
5
291 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

With the rising number of cyber attacks in recent years, keeping your personal data safe has become more important than ever. The tips outlined in this article will help you keep your identitfy safe.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

627 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