You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Struts Newsgroup (@Basebeans.com)" <st...@basebeans.com> on 2002/07/16 17:40:02 UTC

What should I do in Action if I do not want to forward to anywhere in perform()???

Subject: What should I do in Action if I do not want to forward to anywhere in perform()???
From: "J. Jason Zhou" <ja...@sas.com>
 ===
I just want to write out something through response object and do NOT want
to forward to any jsp page???

--
Best Regards,

J. Jason Zhou
Business Intelligence Platform Division (BIP), R & D,
SAS Institute, 100 SAS Campus Dr.
Cary, North Carolina 27513-8617
Voice: 919-531-0568(O)
Email: jason.zhou@sas.com



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: What should I do in Action if I do not want to forward to anywhere in perform()???

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Tue, 16 Jul 2002, Struts Newsgroup wrote:

> Date: Tue, 16 Jul 2002 08:40:02 -0700
> From: Struts Newsgroup <st...@basebeans.com>
> Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>
> To: struts-user@jakarta.apache.org
> Subject: What should I do in Action if I do not want to forward to
>     anywhere in perform()???
>
> Subject: What should I do in Action if I do not want to forward to anywhere in perform()???
> From: "J. Jason Zhou" <ja...@sas.com>
>  ===
> I just want to write out something through response object and do NOT want
> to forward to any jsp page???
>

The answer to this is in the Javadocs for Action.perform() -- return null.

> --
> Best Regards,
>
> J. Jason Zhou

Craig


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: What should I do in Action if I do not want to forward to anywhere in perform()???

Posted by James Mitchell <jm...@telocity.com>.
return null from your Action.

(you can't forward anyway if you've written to the browser)


James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -----Original Message-----
> From: Struts Newsgroup [mailto:@Basebeans.comstruts@basebeans.com]
> Sent: Tuesday, July 16, 2002 11:40 AM
> To: struts-user@jakarta.apache.org
> Subject: What should I do in Action if I do not want to forward to
> anywhere in perform()???
>
>
> Subject: What should I do in Action if I do not want to forward
> to anywhere in perform()???
> From: "J. Jason Zhou" <ja...@sas.com>
>  ===
> I just want to write out something through response object and do NOT want
> to forward to any jsp page???
>
> --
> Best Regards,
>
> J. Jason Zhou
> Business Intelligence Platform Division (BIP), R & D,
> SAS Institute, 100 SAS Campus Dr.
> Cary, North Carolina 27513-8617
> Voice: 919-531-0568(O)
> Email: jason.zhou@sas.com
>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>