Java Mailing List Archive

http://www.junlu.com/

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

Strtus2 Result type support for XML MIME type

carty mc

2006-12-27

Replies:

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)

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