Can someone suggest me a solution for this requirement:
I'am using JSF framework for my webapp.
I'am displaying a list on UI using dataTable. Now when I click on any of the rows, I have to open a separate browser window and display a large string corresponding to that record. Now this string is nothing but a complete XML document. The entire XML doc is stored as a string in the database.
The user wants to view this string in a readable format when it pops up in the new window. It should open in the same way a browser opens a XML document. But the problem is I have it in the string format.
Thanks,
Abhilash
-
need help to display xml as string on UI (2 messages)
- Posted by: abhilash n
- Posted on: May 05 2010 16:13 EDT
Threaded Messages (2)
- Re: need help to display xml as string on UI by Sujoy Choudhury on May 06 2010 01:08 EDT
- need help to display xml as string on UI by Marina Prikaschikova on May 06 2010 05:21 EDT
-
Re: need help to display xml as string on UI[ Go to top ]
- Posted by: Sujoy Choudhury
- Posted on: May 06 2010 01:08 EDT
- in response to abhilash n
I think you have to set the "Content-Type" to "application/xml".
-
need help to display xml as string on UI[ Go to top ]
- Posted by: Marina Prikaschikova
- Posted on: May 06 2010 05:21 EDT
- in response to abhilash n
create a servlet that loads string from DB and set an appropriate content-type (application/xml for example)
Coldbeans - http://www.servletsuite.com