Another option is to use an s:link, styled as a button if necessary,  
and then call a bit of JavaScript onClick to submit the parent form  
with the appropriate event. This might be a bit easier if you need to  
target multiple different handlers from the same form.

Chris.

On Sep 22, 2008, at 10:37 AM, Freddy Daoud wrote:

> Hi Cosmin,
>
> A safer, more explicit, less 'hacky' way to do it is to use a hidden
> input whose name is '_eventName' and value is the name of your event,
> as in
>
> <s:hidden name="_eventName" value="execute"/>
>
> This would call public Resolution execute() on your action bean.
>
> Cheers,
> Freddy
> http://www.stripesbook.com
>
> On Mon, 22 Sep 2008 17:22:56 +0300, "Cosmin Marginean"
> <[EMAIL PROTECTED]> said:
>> Hello everyone,
>>
>> Again, I am running in a "best-practice" issue. I am trying to  
>> submit a
>> form to an action but not to it's default handler. For this, I saw  
>> that
>> having a submit button with the name of the event to be handled will
>> submit to that event handler.
>>
>> However, I am not using a submit button (UI issues) and I need to  
>> submit
>> to this non-default handler. As I saw, I can use a hidden input whose
>> name is the name of the event (same as in the case of the submit  
>> button
>> input). This seems to work (at a first glance at least) but I was
>> wondering if this can be avoided since it seems pretty "hacky" to  
>> me, to
>> be honest.
>>
>> Thanks,
>> Cosmin Marginean
>>
>> -- 
>> cosminaru.ro
> -- 
>
>  [EMAIL PROTECTED]
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's  
> challenge
> Build the coolest Linux based applications with Moblin SDK & win  
> great prizes
> Grand prize is a trip for two to an Open Source event anywhere in  
> the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to