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 > > >

Multiple Submit Buttons problem in Struts2

2011-01-01 Thread aum strut
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 he