You can definitely write an Action to return a JSON string -- just set the content-type of the response appropriately and instead of writing HTML to the response, write your JSON string.
If you're comfortable with JSON and Javascript in general, it should be easy. -Brian On Tue, Mar 8, 2011 at 5:23 PM, Harsh C <hchau...@gmail.com> wrote: > Hi, > > I don't know if this is the right list for a question regarding 2.0.11.1, > if > not please let me know the right forum. > > I am trying to use Struts 2.0.11.1 to work on an AJAX-ified app using Dojo. > Problem is, struts-json plugin is not blessed. > > Is there a way in which I can code an Action which returns a JSON string > without using the JSON plugin? > > -- > *Thanks, > Harsh* >