This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Struts and the fly likes xml display in struts Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "xml display in struts" Watch "xml display in struts" New topic
Author

xml display in struts

Lisa Carter
Greenhorn

Joined: May 29, 2003
Posts: 25
s is possible to display an xml file in struts?

i need to do a search using a form, based on the parameters generate an xml file in a separate screen. is this possible if so how?
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
A JSP can output an xml file instead of an html file. For a Struts application, just have your action populate a javaBean with the information and forward to a JSP that produces XML.

Here is a link that shows some examples of a JSP producing an XML document.


Merrill
Consultant, Sima Solutions
Lisa Carter
Greenhorn

Joined: May 29, 2003
Posts: 25
Thanks. I will give it a try right now.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: xml display in struts
 
Similar Threads
Validation in Struts
Preview image through XML Schema
xml in j2me
Best Choice for Web/XML Developement
Is it possible 2 add multiple formbeans in struts XML file