No, you do not. Those defaults are to make your job easier in most cases, you can return any string as long as it matches the "name" attributes.
----- Original Message ---- From: Milan Milanovic <[EMAIL PROTECTED]> To: user@struts.apache.org Sent: Wednesday, July 2, 2008 3:21:33 PM Subject: Re: [S2] Simple forking 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/-S2--Simple-forking-tp18240640p18244857.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __________________________________________________________________ Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! Canada Messenger at http://ca.beta.messenger.yahoo.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]