Sorry; fat fingers.
public class SomeActionBean extends BaseActionBean {
private Resolution resolution;
@Before(LifecycleStage.ResolutionExecution)
public blah() {
if (this.resolution != null) {
// do something with the resolution
}
}
public Resolution doSomething() {
return this.resolution = new RedirectResolution( ... );
}
}
Someone correct me if I'm wrong, but I don't think the interceptor method
will ever execute on B&V errors because the lifecycle gets cut short.
-Ben
On Mon, Jun 23, 2008 at 3:17 PM, Ben Gunter <[EMAIL PROTECTED]> wrote:
> Maybe do something like this?
>
> public class SomeActionBean extends BaseActionBean {
>
>
> On Mon, Jun 23, 2008 at 2:41 PM, Asleson, Ryan <[EMAIL PROTECTED]>
> wrote:
>
>>
>> Hello,
>>
>> Let's say I annotate a method like this:
>>
>> @Before(LifecycleStage.ResolutionExecution)
>>
>> When the annotated method is called, I assume that some Resolution has
>> been chosen, but has yet to be executed. Is there a way, in that annotated
>> method, to get a reference to the Resolution that is about to be executed?
>> If so, how do I do so? Also, will there also be a Resolution available when
>> binding/validation errors have occurred?
>>
>> Thanks!!
>>
>> -Ryan
>>
>>
>>
>> This e-mail message is being sent solely for use by the intended
>> recipient(s) and may contain confidential information. Any unauthorized
>> review, use, disclosure or distribution is prohibited. If you are not the
>> intended recipient, please contact the sender by phone or reply by e-mail,
>> delete the original message and destroy all copies. Thank you.
>>
>> -------------------------------------------------------------------------
>> Check out the new SourceForge.net Marketplace.
>> It's the best place to buy or sell services for
>> just about anything Open Source.
>> http://sourceforge.net/services/buy/index.php
>> _______________________________________________
>> Stripes-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>>
>>
>
>
> --
> Ben Gunter
--
Ben Gunter
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users