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-
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:
;>
> > >> 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
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
-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
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
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
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
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
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
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
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
>
>
>
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
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
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
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:
>
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
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
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
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
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
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
>
>
>
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
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
--- 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
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:
>
>
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
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
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
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
> 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
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.
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
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
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
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
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
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
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
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
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
[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
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
> 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
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
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
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? ;)
>
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
> 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,
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
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
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...
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
>
>
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"
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
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
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
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
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
59 matches
Mail list logo