This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Action class returning a xml file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Action class returning a xml file" Watch "Action class returning a xml file" New topic
Author

Action class returning a xml file

vijay kittu
Greenhorn

Joined: Feb 14, 2010
Posts: 1
hi,
I am using struts 1.x
I am having a jsp page with several list boxes.
I want to populate these values using an xml file but i don't know how to return a xml file to jsp from action class.
Can any one please help me out here
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Write the XML to the response? What, precisely, is the problem? Actions can return anything, either by having the JSP create XML or by writing to the response directly and returning null.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Action class returning a xml file
 
Similar Threads
How to pass value from .java to .jsp in struts.
JSP to JSP communication problem by using AJAX
how to find the action class?
Sepration of Data from Presesntation layer
struts - internationalization in Action class