Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: Strtus2 Result type support for XML MIME type

Musachy Barroso

2006-12-27

Replies:

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: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.