Re: Multiple Submit Buttons in Same Form using Jquery/Ajax

2016-06-27 Thread Guilherme Bisconcini
Worked, thank you very much! On Fri, Jun 24, 2016 at 12:05 PM, Johannes Geppert wrote: > Looks like you are using the Stuts jQuery Plugin. > You can specify th action url on this button itself. > > See example in the Showcase (AJAX/Form/AJAX Forms) > http://struts.jgeppert.com/struts2-jquery-

Re: Multiple Submit Buttons in Same Form using Jquery/Ajax

2016-06-24 Thread Johannes Geppert
Looks like you are using the Stuts jQuery Plugin. You can specify th action url on this button itself. See example in the Showcase (AJAX/Form/AJAX Forms) http://struts.jgeppert.com/struts2-jquery-showcase/index.action AJAX Form Echo:

Re: Multiple Submit Buttons problem in Struts2

2011-01-04 Thread aum strut
;> > > >> Dave > > >> > > >> On Mon, Jan 3, 2011 at 11:33 AM, Biesbrock, Kevin < > > > biesbrock.ke...@aoins.com > > >>> wrote: > > >> > > >>> Should this be included in documentation as a mo

Re: Multiple Submit Buttons problem in Struts2

2011-01-03 Thread Brian Thompson
Biesbrock, Kevin < > > biesbrock.ke...@aoins.com > >>> wrote: > >> > >>> Should this be included in documentation as a more complex example of > >>> Struts2? Maybe an example action as well? Just a thought. > >>> > >>> > >&g

Re: Multiple Submit Buttons problem in Struts2

2011-01-03 Thread Maurizio Cucchiara
-Beez >>> >>> -Original Message- >>> From: stanl...@gmail.com [mailto:stanl...@gmail.com] >>> Sent: Sunday, January 02, 2011 5:20 PM >>> To: Struts Users Mailing List >>> Subject: Re: Multiple Submit Buttons problem in Struts2 >>&g

Re: Multiple Submit Buttons problem in Struts2

2011-01-03 Thread Brian Thompson
an example action as well? Just a thought. >> >> >> -Beez >> >> -Original Message- >> From: stanl...@gmail.com [mailto:stanl...@gmail.com] >> Sent: Sunday, January 02, 2011 5:20 PM >> To: Struts Users Mailing List >> Subject: Re: Multiple Subm

RE: Multiple Submit Buttons problem in Struts2

2011-01-03 Thread Biesbrock, Kevin
Well, I have no CLA but I will contribute what I may. Beez r 5347 -Original Message- From: Dave Newton [mailto:davelnew...@gmail.com] Sent: Monday, January 03, 2011 11:42 AM To: Struts Users Mailing List Subject: Re: Multiple Submit Buttons problem in Struts2 I kind of thought the

Re: Multiple Submit Buttons problem in Struts2

2011-01-03 Thread Dave Newton
Struts2? Maybe an example action as well? Just a thought. > > > -Beez > > -Original Message- > From: stanl...@gmail.com [mailto:stanl...@gmail.com] > Sent: Sunday, January 02, 2011 5:20 PM > To: Struts Users Mailing List > Subject: Re: Multiple Submit Buttons

RE: Multiple Submit Buttons problem in Struts2

2011-01-03 Thread Biesbrock, Kevin
: Re: Multiple Submit Buttons problem in Struts2 How about something like this? Scott On Sat, Jan 1, 2011 at 8:53 AM, aum strut wrote: > Hi All, > > Trying to work with multiple submit buttons within a single form in > struts2 application but not able to work. her

Re: Multiple Submit Buttons problem in Struts2

2011-01-03 Thread aum strut
Scott, that was a good way to go.. On Mon, Jan 3, 2011 at 3:59 AM, Dave Newton wrote: > Hmm, that looks like it might work ;) > > Your technique also avoids having to code the behavior into the action > itself, decoupling things even more cleanly. > > (Another foot down the rabbit hole: "custom

Re: Multiple Submit Buttons problem in Struts2

2011-01-02 Thread Dave Newton
Hmm, that looks like it might work ;) Your technique also avoids having to code the behavior into the action itself, decoupling things even more cleanly. (Another foot down the rabbit hole: "customer" namespace, so bits of CRUD can be reused across underlying models. I do both, and honestly, I'm

Re: Multiple Submit Buttons problem in Struts2

2011-01-02 Thread stanlick
How about something like this? Scott On Sat, Jan 1, 2011 at 8:53 AM, aum strut wrote: > Hi All, > > Trying to work with multiple submit buttons within a single form in struts2 > application but not able to work. here is the jsp code i am using > > >

Re: Multiple Submit Buttons problem in Struts2

2011-01-01 Thread Dave Newton
So what might some of those ways be? Dave On Sat, Jan 1, 2011 at 2:33 PM, aum strut wrote: > agree!!! > > On Sat, Jan 1, 2011 at 10:20 PM, Dave Newton > wrote: > > > And *my* point is that perhaps there's another way you can solve your > > problem and eliminate the "tight" coupling between for

Re: Multiple Submit Buttons problem in Struts2

2011-01-01 Thread aum strut
agree!!! On Sat, Jan 1, 2011 at 10:20 PM, Dave Newton wrote: > And *my* point is that perhaps there's another way you can solve your > problem and eliminate the "tight" coupling between form and action. > > Dave > > On Sat, Jan 1, 2011 at 11:16 AM, aum strut wrote: > > > My point was that the b

Re: Multiple Submit Buttons problem in Struts2

2011-01-01 Thread Dave Newton
And *my* point is that perhaps there's another way you can solve your problem and eliminate the "tight" coupling between form and action. Dave On Sat, Jan 1, 2011 at 11:16 AM, aum strut wrote: > My point was that the boolean approach mentioned in the document was in my > opinion is better and s

Re: Multiple Submit Buttons problem in Struts2

2011-01-01 Thread aum strut
My point was that the boolean approach mentioned in the document was in my opinion is better and same was mentioned in the document sinnce it was not coupling the form tightly with action. On Sat, Jan 1, 2011 at 9:44 PM, Dave Newton wrote: > On Sat, Jan 1, 2011 at 11:13 AM, aum strut wrote: >

Re: Multiple Submit Buttons problem in Struts2

2011-01-01 Thread Dave Newton
On Sat, Jan 1, 2011 at 11:13 AM, aum strut wrote: > agree! > but i still believe coupling the form value with action component is never > a > good idea.. so still believe the first approach was was better. > So... is there another way to achieve what you want? Dave

Re: Multiple Submit Buttons problem in Struts2

2011-01-01 Thread aum strut
agree! but i still believe coupling the form value with action component is never a good idea.. so still believe the first approach was was better. Though i switched to second myself :) On Sat, Jan 1, 2011 at 9:38 PM, Dave Newton wrote: > I think any time there's documentation that's 4+ yea

Re: Multiple Submit Buttons problem in Struts2

2011-01-01 Thread Dave Newton
I think any time there's documentation that's 4+ years old you can't necessarily rely on it being accurate. Dave On Sat, Jan 1, 2011 at 10:29 AM, aum strut wrote: > i was just refreing the following document > http://struts.apache.org/2.0.14/docs/multiple-submit-buttons.html > > since it was me

Re: Multiple Submit Buttons problem in Struts2

2011-01-01 Thread Maurizio Cucchiara
I'm not sure at this moment, but using 1 as value should work Maurizio Cucchiara On Jan 1, 2011 4:29 PM, "aum strut" wrote: i was just refreing the following document http://struts.apache.org/2.0.14/docs/multiple-submit-buttons.html since it was mentioned that second approach will make action c

Re: Multiple Submit Buttons problem in Struts2

2011-01-01 Thread aum strut
i was just refreing the following document http://struts.apache.org/2.0.14/docs/multiple-submit-buttons.html since it was mentioned that second approach will make action code depedent with the form On Sat, Jan 1, 2011 at 8:48 PM, Dave Newton wrote: > S2 would have no idea how to convert "Impor

Re: Multiple Submit Buttons problem in Struts2

2011-01-01 Thread Dave Newton
S2 would have no idea how to convert "Import" to a true or false value. Dave On Sat, Jan 1, 2011 at 9:53 AM, aum strut wrote: > Hi All, > > Trying to work with multiple submit buttons within a single form in struts2 > application but not able to work. here is the jsp code i am using > > >

Re: Multiple submit buttons in a single JSP

2008-02-07 Thread Lukasz Lenart
Hi, You can use and Action class with three methods, the same like execute() http://struts.apache.org/2.x/docs/submit.html Regards -- Lukasz http://www.linkedin.com/in/lukaszlenart - To unsubscribe, e-mail: [EMAIL PROTECT

RE: Multiple submit buttons on form not working

2007-03-01 Thread Neil Aggarwal
your inbox. Visit http://www.spammilter.com for details. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Thursday, March 01, 2007 7:46 AM To: Struts Users Mailing List Subject: Re: Multiple submit buttons on form not working --- Neil Aggarwal <[EMAIL PROTEC

Re: Multiple submit buttons on form not working

2007-03-01 Thread Dave Newton
--- Neil Aggarwal <[EMAIL PROTECTED]> wrote: > > > > > > Any ideas why this is not working? I would guess because it's trying to convert the string value into a true/false boolean and failing? (If I change the value to "true" for the msg1/msg2 buttons it works.) So I guess I'm a little c

Re: multiple submit buttons: LookupDispatchAction / ActionForward formdata missing

2006-03-01 Thread Michael Jouravlev
ev [mailto:[EMAIL PROTECTED] > Sent: Tue 2/28/2006 4:15 PM > To: Struts Users Mailing List > Subject: Re: multiple submit buttons: LookupDispatchAction / ActionForward > formdata missing > > > > > On 2/28/06, SIRAGHER, JOEL <[EMAIL PROTECTED]> wrote: > >

Re: multiple submit buttons: LookupDispatchAction / ActionForward formdata missing

2006-03-01 Thread Dakota Jack
P.S. The lookup dispatch action is a new and improved version at www.michaelmcgrady.com, not the bad one in Struts. On 2/28/06, SIRAGHER, JOEL <[EMAIL PROTECTED]> wrote: > > Greetings: > > I've been debugging now for a while, and don't know where to continue > looking. > > I'm doing multiple sub

Re: multiple submit buttons: LookupDispatchAction / ActionForward formdata missing

2006-03-01 Thread Dakota Jack
LookupDispatchAction is horrid. Use one of the varieties found at www.michaelmcgrady.com under buttons. You also don't need to change from 1.1 to 1.2.7. You just need the class, which you can put in yourself. On 2/28/06, SIRAGHER, JOEL <[EMAIL PROTECTED]> wrote: > > Greetings: > > I've been d

RE: multiple submit buttons: LookupDispatchAction / ActionForward formdata missing

2006-03-01 Thread SIRAGHER, JOEL
we are unfortunately using 1.1. I will check with the techspert team to see if we can switch over. thank you for the suggestion From: Michael Jouravlev [mailto:[EMAIL PROTECTED] Sent: Tue 2/28/2006 4:15 PM To: Struts Users Mailing List Subject: Re: multiple

RE: multiple submit buttons: LookupDispatchAction / ActionForward formdata missing

2006-03-01 Thread SIRAGHER, JOEL
have i defined it? yes i did. I will check as soon as I get to work. thank you for the observation. From: Michael Jouravlev [mailto:[EMAIL PROTECTED] Sent: Tue 2/28/2006 4:09 PM To: Struts Users Mailing List Subject: Re: multiple submit buttons

Re: multiple submit buttons: LookupDispatchAction / ActionForward formdata missing

2006-02-28 Thread Michael Jouravlev
> On 2/28/06, SIRAGHER, JOEL <[EMAIL PROTECTED]> wrote: By the way, LookupDispatchAction is not the best choice to dispatch events. I suggest you to use this one: http://issues.apache.org/bugzilla/attachment.cgi?id=17724 You will also need ActionDispatcher class from Struts 1.2.7+ distro. Michae

Re: multiple submit buttons: LookupDispatchAction / ActionForward formdata missing

2006-02-28 Thread Michael Jouravlev
On 2/28/06, SIRAGHER, JOEL <[EMAIL PROTECTED]> wrote: > I'm doing multiple submit buttons on my struts/jsp 1.1 page. My > debugger takes me to the correct action, but the action has no form data > in it. ... > RetrieveFormBean dataForm = (RetrieveFormBean) form; >// form data comes back null.

Re: Multiple Submit Buttons

2006-01-20 Thread Michael Jouravlev
On 1/20/06, Paul Benedict <[EMAIL PROTECTED]> wrote: > Laurie, > > I thought I saw a version of dispatchaction that could handle this. The > parameter attribute > contained a comma-delimited list of possible names and thus methods which > could be invoked for the > particular action. Do you remem

Re: Multiple Submit Buttons

2006-01-20 Thread Paul Benedict
Laurie, I thought I saw a version of dispatchaction that could handle this. The parameter attribute contained a comma-delimited list of possible names and thus methods which could be invoked for the particular action. Do you remember this proposal? Paul

Re: Multiple Submit Buttons

2006-01-20 Thread Laurie Harper
Paul Benedict wrote: What's the best way to accomplish this? I really dislike using the button text to find the correct dispatch so I don't want to use LookupDispatchAction. Is there another way, such as using the button's name to invoke the correct method? I thought I saw such a proposal in t

Re: multiple submit buttons

2005-09-30 Thread Michael Jouravlev
On 9/30/05, Warren Bell <[EMAIL PROTECTED]> wrote: > I am sure this question has been asked before, but I don't know what > keywords to use to search for it. I have a table where each row has a hidden > field and two submit buttons, a "buy now" and a "Add to shopping cart". A > typical layout for m

Re: multiple submit buttons on a form

2004-10-05 Thread Michael McGrady
Rick Reumann wrote: Michael McGrady wrote the following on 10/5/2004 1:40 PM: He cannot use a basic DispatchAction, Rick, since he wants to use multiple buttons. He needs multiple buttons with the same value. Since the value of the name parameter in the HTML is completely decoupled from all of

Re: multiple submit buttons on a form

2004-10-05 Thread Rick Reumann
Michael McGrady wrote the following on 10/5/2004 1:40 PM: He cannot use a basic DispatchAction, Rick, since he wants to use multiple buttons. He needs multiple buttons with the same value. Since the value of the name parameter in the HTML is completely decoupled from all of my solutions, he is

Re: multiple submit buttons on a form

2004-10-05 Thread Michael McGrady
struts lover wrote: Hello Everyone, I have this problem. I have several submit buttons on a form and I am using a modified version of LookupDispatchAction class. Is there any way for the buttons to have the same name instead of having separate names as required by LookupDispatchAction. I also w

Re: multiple submit buttons on a form

2004-10-05 Thread Michael McGrady
Rick Reumann wrote: struts lover wrote the following on 10/5/2004 10:12 AM: I have this problem. I have several submit buttons on a form and I am using a modified version of LookupDispatchAction class. Is there any way for the buttons to have the same name instead of having separate names as requ

Re: [OT] RE: multiple submit buttons on a form

2004-10-05 Thread Michael McGrady
Durham David R Jr Contr 805 CSPTS/SCE wrote: The reason is that I may want to change this page without having to go to every place it is linked to do so. Does that qualify as a "splash" screen? HA HA - Dave Well, you live and learn, Dave. I had never heard of "splash screens" before. LOL

Re: multiple submit buttons on a form

2004-10-05 Thread Michael McGrady
[EMAIL PROTECTED] wrote: 1. He authored that WIKI and 2. That WIKI now directly links to his homepage, so why make the OP suffer redirection? Dennis Because indirection decouples the link and leaves me free to change my site, Dave

Re: multiple submit buttons on a form

2004-10-05 Thread Rick Reumann
struts lover wrote the following on 10/5/2004 10:12 AM: I have this problem. I have several submit buttons on a form and I am using a modified version of LookupDispatchAction class. Is there any way for the buttons to have the same name instead of having separate names as required by LookupDisp

[OT] RE: multiple submit buttons on a form

2004-10-05 Thread Durham David R Jr Contr 805 CSPTS/SCE
> The reason is that I may want to change this page > without having to go to every place it is linked > to do so. Does that qualify as a "splash" screen? HA HA - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: multiple submit buttons on a form

2004-10-05 Thread DGraham
Never mind, I misread Davids post. Dennis [EMAIL PROTECTED] 10/05/2004 10:31 AM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To "Struts Users Mailing List" <[EMAIL PROTECTED]> cc Subject RE: multiple submit buttons on a f

Re: multiple submit buttons on a form

2004-10-05 Thread Michael McGrady
Hi, David, that is a good question, which Steve Raeburn once solved by changing the link. The reason is that I may want to change this page without having to go to every place it is linked to do so. Just "decoupling", as they say. In fact, since Steve changed the link, I have changed the pag

RE: multiple submit buttons on a form

2004-10-05 Thread struts lover
LOL :)) --- Durham David R Jr Contr 805 CSPTS/SCE <[EMAIL PROTECTED]> wrote: > > > http://wiki.apache.org/struts/StrutsCatalogVariousButtonSolutions > > Mike, why not link directly to the Struts related > stuff from the wiki. > Or are you trying to drum up business for your flash > skills? ;) >

RE: multiple submit buttons on a form

2004-10-05 Thread DGraham
L PROTECTED]> To "Struts Users Mailing List" <[EMAIL PROTECTED]> cc Subject RE: multiple submit buttons on a form > http://wiki.apache.org/struts/StrutsCatalogVariousButtonSolutions Mike, why not link directly to the Struts related stuff from the wiki. O

RE: multiple submit buttons on a form

2004-10-05 Thread Durham David R Jr Contr 805 CSPTS/SCE
> http://wiki.apache.org/struts/StrutsCatalogVariousButtonSolutions Mike, why not link directly to the Struts related stuff from the wiki. Or are you trying to drum up business for your flash skills? ;) - Dave - To unsubscribe,

Re: multiple submit buttons on a form

2004-10-05 Thread struts lover
Thanks Michael very much. I will go through it. If I dont understand anything, will come back :). Thanks again. --- Michael McGrady <[EMAIL PROTECTED]> wrote: > Lucky you, Struts Lover, this has already been done. > See > http://wiki.apache.org/struts/StrutsCatalogVariousButtonSolutions > . Yo

Re: multiple submit buttons on a form

2004-10-05 Thread Michael McGrady
Lucky you, Struts Lover, this has already been done. See http://wiki.apache.org/struts/StrutsCatalogVariousButtonSolutions . You can get everything you want without the incredibly heavy load of having LookupDispatchAction create a reverse map of your entire ApplicationResource.properties file

Re: multiple submit buttons/one form

2004-06-28 Thread Michael McGrady
Try: http://wiki.apache.org/struts/StrutsCatalogMultipleImageButtonsWithNoJavaScript At 03:19 AM 6/28/2004, Axel Groß wrote: just don't forget to keep the messages unique per form had once delete property and delete main entries in one form, so the message shouldn't be 'delete' for both of them...

Re: multiple submit buttons/one form

2004-06-28 Thread Axel Groß
just don't forget to keep the messages unique per form had once delete property and delete main entries in one form, so the message shouldn't be 'delete' for both of them... ciao, Axel On 2004-06-28 at 14:56:32 +1200, [EMAIL PROTECTED] wrote: > There is a nice solution described here > >

Re: multiple submit buttons/one form

2004-06-27 Thread Martin . Rademacher
There is a nice solution described here http://husted.com/struts/tips/003.html using the LookupDispatchAction action. Cheers, Martin Eric Schneider <[EMAIL PROTECTED]> 28/06/2004 14:47 Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To "Struts Users Mailing List"

RE: multiple submit buttons/one form

2004-06-27 Thread William Ferguson
Suggest that you create a RelayAction that looks for a certain Form/Request parameter (set by your buttons). The RelayAction then just forwards onto the real Actions that you want performed, based on the value of the Request parameter. William -Original Message- From: Eric Schneider [mail

Re: Multiple submit buttons in the same form

2004-05-29 Thread None None
remove one important piece of scripting. And it seemed like it might be useful information in the context of this thread. From: Riyad Kalla <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> Subje

Re: Multiple submit buttons in the same form

2004-05-29 Thread Riyad Kalla
Rick, This is a great approach as well and I think we've giving good answers. 1 way you change the Form, and another way you change the Action. I didn't know you could do it the way you described, thanks for the tip! Rick Reumann wrote: Riyad Kalla wrote: 1) Yes you can do it 2) Given each button

Re: Multiple submit buttons in the same form

2004-05-29 Thread Rick Reumann
Riyad Kalla wrote: 1) Yes you can do it 2) Given each button a different value, like "List Products" and "List All Products" 3) Add a "buttonValue" (or some other adequetly names) property to your form for the respective action, it will capture the button clicked. 4) In your action: if(form.getB

Re: Multiple submit buttons in the same form

2004-05-29 Thread Riyad Kalla
1) Yes you can do it 2) Given each button a different value, like "List Products" and "List All Products" 3) Add a "buttonValue" (or some other adequetly names) property to your form for the respective action, it will capture the button clicked. 4) In your action: if(form.getButtonValue().equals