Thanks for your reply Chris. Are you specifying a result type of "plaintext" in struts.xml or any <result> element at all? I seem to be running into a situation where struts2 is trying to redirect me to a JSP w/ the same name as the action.

Thanks again for your help!

-- john


Chris Pratt wrote:
I'd like to simply return some text from a Action w/o redirecting to a
page. I did this sort of thing in Struts1 by using the response's
PrintWriter and returning null from the Action's execute method.

You can do it exactly the way you did in Struts 1 (or mostly anyway).
If you implement ServletResponseAware you'll have access to the
HttpServletResponse and if you return null from the action the system
won't forward you anywhere.  I have several AJAX Actions that do
exactly this.
  (*Chris*)

---------------------------------------------------------------------
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