Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 294
  • Last Modified:

JSP-XML-SERVLET

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
kamal_psg
Asked:
kamal_psg
2 Solutions
 
krispolsCommented:
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
 
dualsoulCommented:
hm...do you need tree-view like in IE?
if so, use XSLT to transform.
0
 
kennethxuCommented:
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

Independent Software Vendors: 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!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now