This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara 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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Action class returning a xml file