File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Action class returning a xml file" Watch "Action class returning a xml file" New topic

Action class returning a xml file

vijay kittu

Joined: Feb 14, 2010
Posts: 1
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

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:
subject: Action class returning a xml file
It's not a secret anymore!