This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
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
xml in j2me
Validation in Struts
Preview image through XML Schema
Best Choice for Web/XML Developement
Is it possible 2 add multiple formbeans in struts XML file