3 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
>>
t.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-tp182406
> 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/
---
web browser - no download required. Try the
> new Yahoo! Canada Messenger for the Web BETA at
> http://ca.messenger.yahoo.com/webmessengerpromo.php
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional c
Have you tried:
// First result
/pages/Finish.jsp
// Second result
second
/secondparam>
true
${id}
__
Connect wit
; --
> 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.c
> So, that's it ? But, what in the case if my page should be supported with
> another action class (in another namespace) ?
You can use instead full file path, not just fille name
Regards
--
Lukasz
http://www.lenart.org.pl/
-
nputAction define getPageName()
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
Use params in result
/pages/${pageName}
and in InputAction define getPageName()
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROT
namespace).
How I can define that in struts.xml and choose from my action class (method)
?
This is my current action in struts.xml:
/pages/Finish.jsp
but I need more results.
--
Thx, Milan
--
View this message in context:
http://www.nabble.com/-S2--Simple-forking-tp18240640p182
10 matches
Mail list logo