You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ooper <ma...@roomity.com> on 2006/02/22 01:40:50 UTC

Does "return null" from Action class send "200 OK" response?

Does "return null" from Action class send "200 OK" response? If not, how do I do it? TIA, Brian Barnett


Broadband interface (RIA) + mail box saftey = http://Struts_User_List.roomity.com
*Your* clubs, no sign up to read, ad supported; try broadband internet. 

Re: Does "return null" from Action class send "200 OK" response?

Posted by Michael Jouravlev <jm...@gmail.com>.
On 2/21/06, ooper <ma...@roomity.com> wrote:
> Does "return null" from Action class send "200 OK" response?

Generally, no.

> If not, how do I do it?

"return null" means that you "took care of response". This means that
you set up response headers and response content whatever you feel
appropriate, and you instructed Struts not to mess with it.

Response object is sent to Action.execute() method as parameter.

Michael.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org