Re: result-type using annotations

2010-07-13 Thread JP Cafaro
son result type, i.e., @Result(name="foo", type="json", ...) or you could set the contentType in your @Result params as application/json and have your associated template emit the exact json that you want to return. On Tue, Jul 13, 2010 at 5:34 AM, JP Cafaro wrote: Is it possible

Re: result-type using annotations

2010-07-13 Thread Allen Lee
have your associated template emit the exact json that you want to return. On Tue, Jul 13, 2010 at 5:34 AM, JP Cafaro wrote: > Is it possible to declare result-type using annotations?  For example, when > trying to return an object, that gets serialized to json, is it possible to > move away f

result-type using annotations

2010-07-13 Thread JP Cafaro
Is it possible to declare result-type using annotations? For example, when trying to return an object, that gets serialized to json, is it possible to move away from the struts.xml and do it via annotations - To unsubscribe