Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

Re: [S2] Simple forking

Milan Milanovic

2008-07-02

Replies: Find Java Web Hosting

Author LoginPost Reply

Oh, thank you Lukasz. So, I just return string, I don't need to use
predefiend Action.SUCCESS, etc.

--
Thx, Milan


Lukasz Lenart wrote:
>
>> No, I haven't. But, how do I choose "result1" or "result2" from
>> InputActions'
>> "save" method ?
>
> Base on the result from execute()
>
> public String execute() {
>  if (something) {
>   return "result1";
>  } else {
>   return "result2";
>  }
> }
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>

--
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.