View Full Version : How to create XML File in Action Class?

12 Jul 2010, 6:12 AM
Any one help me how to create XML file in Actions class so that to load ExtJs Grid.
In our project we are using Struts frame work.
Please help me with sample code

12 Jul 2010, 6:17 AM
Any specific reason you want to use XML instead of JSON (JSON is smaller and faster)?

12 Jul 2010, 6:38 AM
Not any specific reason . I just want to know how to create XML file

12 Jul 2010, 6:39 AM
Can u pls tell how to send data from From Bean to ExtJs?

12 Jul 2010, 6:47 AM
I'm using Spring MVC, so I don't know much about Struts.

It could be something like <forward>ing to a .jsp that uses json-taglib.jar (http://json-taglib.sourceforge.net/) to output JSON data instead of HTML.
(but I'm sure there are better solutions not requiring a .jsp at all)

12 Jul 2010, 6:52 AM
Thx u so much