There is a jira ticket to add an XML result type, and a JSON result type.

http://issues.apache.org/struts/browse/WW-1330.

It hasn't been fixed yet, but there is some code attached to it that you can use meanwhile.

regards
musachy

carty mc wrote:
Does anyone of struts2 built in result types support text/xml MIME
type. I want to generate dynamic xml in my action class and write to
the servelt output stream.

All the result types I have seen so far in struts2 require a location
property as part of configuration. is there a built in result type
that supports this?  I am generating this xml content in memory and
dont want to write to the disk.

NOTE: (Currently I have written custom result type to handle this
scenario, since all of the existing result types are asking for
location of the file.)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to