Re: Multiple Submit Buttons problem in Struts2

2011-01-04 Thread aum strut
Well my +1 lots of the things in the doc are very old and yes i am ready to
contribute
@Dave :If you can share the list after compiling it will help us to pick the
topics more easily

On Tue, Jan 4, 2011 at 12:17 AM, Brian Thompson elephant...@gmail.comwrote:

 Thanks, Maurizio.

 Brian



 On Mon, Jan 3, 2011 at 12:14 PM, Maurizio Cucchiara 
 maurizio.cucchi...@gmail.com wrote:

  Individual Contributor License Agreement [1]
  [1] http://www.apache.org/licenses/icla.txt
 
  2011/1/3 Brian Thompson elephant...@gmail.com:
   Pardon my ignorance, but what is a CLA?  I haven't heard of it before
  this.
  
   Brian
  
   Sent via my Droid, Eka.
   On Jan 3, 2011 10:42 AM, Dave Newton davelnew...@gmail.com wrote:
   I kind of thought the ability to submit to specific action methods was
   well-known, but perhaps you're correct, as this thread indicates (to
 my
   chagrin).
  
   There are a number of things in the wiki that need updating; I'll
  probably
   start compiling a list from previous threads and open JIRA issues. The
   cool
   thing is that anybody with a CLA on file can help. (The uncool thing
 is
   that
   we get that kind of help more rarely than might be optimal.)
  
   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 more complex example of
   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 problem in Struts2
  
   How about something like this?
  
   s:form namespace=/customer 
   s:hidden key=domain.id /
   s:textfield key=domain.firstName /
   s:textfield key=domain.lastName /
   s:textfield key=domain.address1 /
   s:textfield key=domain.address2 /
   s:textfield key=domain.city /
   s:textfield key=domain.state /
   s:textfield key=domain.zip /
  
  
   s:submit action=customer_cancel value=Cancel/ s:submit
   action=customer_save value=Save/ s:submit
 action=customer_print
   value=Print/ /s:if /s:form
  
   Scott
  
   On Sat, Jan 1, 2011 at 8:53 AM, aum strut aum.str...@gmail.com
  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
   
tr
td
class=buttoninput type=submit value=Import
   
name=destinationImport class=button/td
td
class=buttoninput type=submit value=Export
   
name=destinationExport class=button/td
/tr
   
here is the java part
   
private boolean destinationImport;
private boolean destinationExport;
and there respective setter and getter
   
but i am sure is that Struts2 type convertor is having problem
converting the String value to boolean do any one have idea how to
achieve this
   
i am using struts-2.2.1 version.
   
Thanks in advance
   
  
  
   -
   To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
   For additional commands, e-mail: user-h...@struts.apache.org
  
  
  
 
 
 
  --
  Maurizio Cucchiara
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 



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 davelnew...@gmail.com 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: customer namespace, so bits of CRUD
 can be reused across underlying models. I do both, and honestly, I'm not
 sure I care either way, especially if I'm not manually generating all the
 view-layer stuff.)

 Dave

 On Sun, Jan 2, 2011 at 5:20 PM, stanl...@gmail.com wrote:

  How about something  like this?
 
  s:form namespace=/customer 
  s:hidden key=domain.id /
  s:textfield key=domain.firstName /
  s:textfield key=domain.lastName /
  s:textfield key=domain.address1 /
  s:textfield key=domain.address2 /
  s:textfield key=domain.city /
  s:textfield key=domain.state /
  s:textfield key=domain.zip /
 
 
  s:submit action=customer_cancel value=Cancel/
  s:submit action=customer_save value=Save/
  s:submit action=customer_print value=Print/
  /s:if
  /s:form
 
  Scott
 
  On Sat, Jan 1, 2011 at 8:53 AM, aum strut aum.str...@gmail.com 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
  
   tr
  td
   class=buttoninput type=submit value=Import
  
   name=destinationImport class=button/td
  td
   class=buttoninput type=submit value=Export
  
   name=destinationExport class=button/td
  /tr
  
   here is the java part
  
   private boolean destinationImport;
  private boolean destinationExport;
   and there respective setter and getter
  
   but i am sure is that Struts2 type convertor is having problem
 converting
   the String value to boolean do any one have idea how to achieve this
  
   i am using struts-2.2.1 version.
  
   Thanks in advance
  
 



RE: Multiple Submit Buttons problem in Struts2

2011-01-03 Thread Biesbrock, Kevin
Should this be included in documentation as a more complex example of
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 problem in Struts2

How about something  like this?

s:form namespace=/customer 
s:hidden key=domain.id /
s:textfield key=domain.firstName /
s:textfield key=domain.lastName /
s:textfield key=domain.address1 /
s:textfield key=domain.address2 /
s:textfield key=domain.city /
s:textfield key=domain.state /
s:textfield key=domain.zip /


s:submit action=customer_cancel value=Cancel/ s:submit
action=customer_save value=Save/ s:submit action=customer_print
value=Print/ /s:if /s:form

Scott

On Sat, Jan 1, 2011 at 8:53 AM, aum strut aum.str...@gmail.com 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

 tr
td 
 class=buttoninput type=submit value=Import

 name=destinationImport class=button/td
td 
 class=buttoninput type=submit value=Export

 name=destinationExport class=button/td
/tr

 here is the java part

 private boolean destinationImport;
private boolean destinationExport;
 and there respective setter and getter

 but i am sure is that Struts2 type convertor is having problem 
 converting the String value to boolean do any one have idea how to 
 achieve this

 i am using struts-2.2.1 version.

 Thanks in advance



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Multiple Submit Buttons problem in Struts2

2011-01-03 Thread Dave Newton
I kind of thought the ability to submit to specific action methods was
well-known, but perhaps you're correct, as this thread indicates (to my
chagrin).

There are a number of things in the wiki that need updating; I'll probably
start compiling a list from previous threads and open JIRA issues. The cool
thing is that anybody with a CLA on file can help. (The uncool thing is that
we get that kind of help more rarely than might be optimal.)

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 more complex example of
 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 problem in Struts2

 How about something  like this?

 s:form namespace=/customer 
 s:hidden key=domain.id /
 s:textfield key=domain.firstName /
 s:textfield key=domain.lastName /
 s:textfield key=domain.address1 /
 s:textfield key=domain.address2 /
 s:textfield key=domain.city /
 s:textfield key=domain.state /
 s:textfield key=domain.zip /


 s:submit action=customer_cancel value=Cancel/ s:submit
 action=customer_save value=Save/ s:submit action=customer_print
 value=Print/ /s:if /s:form

 Scott

 On Sat, Jan 1, 2011 at 8:53 AM, aum strut aum.str...@gmail.com 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
 
  tr
 td
  class=buttoninput type=submit value=Import
 
  name=destinationImport class=button/td
 td
  class=buttoninput type=submit value=Export
 
  name=destinationExport class=button/td
 /tr
 
  here is the java part
 
  private boolean destinationImport;
 private boolean destinationExport;
  and there respective setter and getter
 
  but i am sure is that Struts2 type convertor is having problem
  converting the String value to boolean do any one have idea how to
  achieve this
 
  i am using struts-2.2.1 version.
 
  Thanks in advance
 


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




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 ability to submit to specific action methods was
well-known, but perhaps you're correct, as this thread indicates (to my
chagrin).

There are a number of things in the wiki that need updating; I'll
probably start compiling a list from previous threads and open JIRA
issues. The cool thing is that anybody with a CLA on file can help. (The
uncool thing is that we get that kind of help more rarely than might be
optimal.)

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 more complex example of 
 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 problem in Struts2

 How about something  like this?

 s:form namespace=/customer 
 s:hidden key=domain.id /
 s:textfield key=domain.firstName / s:textfield 
 key=domain.lastName / s:textfield key=domain.address1 / 
 s:textfield key=domain.address2 / s:textfield key=domain.city 
 / s:textfield key=domain.state / s:textfield key=domain.zip /


 s:submit action=customer_cancel value=Cancel/ s:submit 
 action=customer_save value=Save/ s:submit
action=customer_print
 value=Print/ /s:if /s:form

 Scott

 On Sat, Jan 1, 2011 at 8:53 AM, aum strut aum.str...@gmail.com
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
 
  tr
 td 
  class=buttoninput type=submit value=Import
 
  name=destinationImport class=button/td
 td 
  class=buttoninput type=submit value=Export
 
  name=destinationExport class=button/td
 /tr
 
  here is the java part
 
  private boolean destinationImport;
 private boolean destinationExport; and there respective setter 
  and getter
 
  but i am sure is that Struts2 type convertor is having problem 
  converting the String value to boolean do any one have idea how to 
  achieve this
 
  i am using struts-2.2.1 version.
 
  Thanks in advance
 


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Multiple Submit Buttons problem in Struts2

2011-01-03 Thread Brian Thompson
Pardon my ignorance, but what is a CLA?  I haven't heard of it before this.

Brian

Sent via my Droid, Eka.
On Jan 3, 2011 10:42 AM, Dave Newton davelnew...@gmail.com wrote:
 I kind of thought the ability to submit to specific action methods was
 well-known, but perhaps you're correct, as this thread indicates (to my
 chagrin).

 There are a number of things in the wiki that need updating; I'll probably
 start compiling a list from previous threads and open JIRA issues. The
cool
 thing is that anybody with a CLA on file can help. (The uncool thing is
that
 we get that kind of help more rarely than might be optimal.)

 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 more complex example of
 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 problem in Struts2

 How about something like this?

 s:form namespace=/customer 
 s:hidden key=domain.id /
 s:textfield key=domain.firstName /
 s:textfield key=domain.lastName /
 s:textfield key=domain.address1 /
 s:textfield key=domain.address2 /
 s:textfield key=domain.city /
 s:textfield key=domain.state /
 s:textfield key=domain.zip /


 s:submit action=customer_cancel value=Cancel/ s:submit
 action=customer_save value=Save/ s:submit action=customer_print
 value=Print/ /s:if /s:form

 Scott

 On Sat, Jan 1, 2011 at 8:53 AM, aum strut aum.str...@gmail.com 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
 
  tr
  td
  class=buttoninput type=submit value=Import
 
  name=destinationImport class=button/td
  td
  class=buttoninput type=submit value=Export
 
  name=destinationExport class=button/td
  /tr
 
  here is the java part
 
  private boolean destinationImport;
  private boolean destinationExport;
  and there respective setter and getter
 
  but i am sure is that Struts2 type convertor is having problem
  converting the String value to boolean do any one have idea how to
  achieve this
 
  i am using struts-2.2.1 version.
 
  Thanks in advance
 


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




Re: Multiple Submit Buttons problem in Struts2

2011-01-03 Thread Maurizio Cucchiara
Individual Contributor License Agreement [1]
[1] http://www.apache.org/licenses/icla.txt

2011/1/3 Brian Thompson elephant...@gmail.com:
 Pardon my ignorance, but what is a CLA?  I haven't heard of it before this.

 Brian

 Sent via my Droid, Eka.
 On Jan 3, 2011 10:42 AM, Dave Newton davelnew...@gmail.com wrote:
 I kind of thought the ability to submit to specific action methods was
 well-known, but perhaps you're correct, as this thread indicates (to my
 chagrin).

 There are a number of things in the wiki that need updating; I'll probably
 start compiling a list from previous threads and open JIRA issues. The
 cool
 thing is that anybody with a CLA on file can help. (The uncool thing is
 that
 we get that kind of help more rarely than might be optimal.)

 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 more complex example of
 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 problem in Struts2

 How about something like this?

 s:form namespace=/customer 
 s:hidden key=domain.id /
 s:textfield key=domain.firstName /
 s:textfield key=domain.lastName /
 s:textfield key=domain.address1 /
 s:textfield key=domain.address2 /
 s:textfield key=domain.city /
 s:textfield key=domain.state /
 s:textfield key=domain.zip /


 s:submit action=customer_cancel value=Cancel/ s:submit
 action=customer_save value=Save/ s:submit action=customer_print
 value=Print/ /s:if /s:form

 Scott

 On Sat, Jan 1, 2011 at 8:53 AM, aum strut aum.str...@gmail.com 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
 
  tr
  td
  class=buttoninput type=submit value=Import
 
  name=destinationImport class=button/td
  td
  class=buttoninput type=submit value=Export
 
  name=destinationExport class=button/td
  /tr
 
  here is the java part
 
  private boolean destinationImport;
  private boolean destinationExport;
  and there respective setter and getter
 
  but i am sure is that Struts2 type convertor is having problem
  converting the String value to boolean do any one have idea how to
  achieve this
 
  i am using struts-2.2.1 version.
 
  Thanks in advance
 


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org






-- 
Maurizio Cucchiara

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Multiple Submit Buttons problem in Struts2

2011-01-03 Thread Brian Thompson
Thanks, Maurizio.

Brian



On Mon, Jan 3, 2011 at 12:14 PM, Maurizio Cucchiara 
maurizio.cucchi...@gmail.com wrote:

 Individual Contributor License Agreement [1]
 [1] http://www.apache.org/licenses/icla.txt

 2011/1/3 Brian Thompson elephant...@gmail.com:
  Pardon my ignorance, but what is a CLA?  I haven't heard of it before
 this.
 
  Brian
 
  Sent via my Droid, Eka.
  On Jan 3, 2011 10:42 AM, Dave Newton davelnew...@gmail.com wrote:
  I kind of thought the ability to submit to specific action methods was
  well-known, but perhaps you're correct, as this thread indicates (to my
  chagrin).
 
  There are a number of things in the wiki that need updating; I'll
 probably
  start compiling a list from previous threads and open JIRA issues. The
  cool
  thing is that anybody with a CLA on file can help. (The uncool thing is
  that
  we get that kind of help more rarely than might be optimal.)
 
  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 more complex example of
  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 problem in Struts2
 
  How about something like this?
 
  s:form namespace=/customer 
  s:hidden key=domain.id /
  s:textfield key=domain.firstName /
  s:textfield key=domain.lastName /
  s:textfield key=domain.address1 /
  s:textfield key=domain.address2 /
  s:textfield key=domain.city /
  s:textfield key=domain.state /
  s:textfield key=domain.zip /
 
 
  s:submit action=customer_cancel value=Cancel/ s:submit
  action=customer_save value=Save/ s:submit action=customer_print
  value=Print/ /s:if /s:form
 
  Scott
 
  On Sat, Jan 1, 2011 at 8:53 AM, aum strut aum.str...@gmail.com
 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
  
   tr
   td
   class=buttoninput type=submit value=Import
  
   name=destinationImport class=button/td
   td
   class=buttoninput type=submit value=Export
  
   name=destinationExport class=button/td
   /tr
  
   here is the java part
  
   private boolean destinationImport;
   private boolean destinationExport;
   and there respective setter and getter
  
   but i am sure is that Struts2 type convertor is having problem
   converting the String value to boolean do any one have idea how to
   achieve this
  
   i am using struts-2.2.1 version.
  
   Thanks in advance
  
 
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 
 



 --
 Maurizio Cucchiara

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




Re: Multiple Submit Buttons problem in Struts2

2011-01-02 Thread stanlick
How about something  like this?

s:form namespace=/customer 
s:hidden key=domain.id /
s:textfield key=domain.firstName /
s:textfield key=domain.lastName /
s:textfield key=domain.address1 /
s:textfield key=domain.address2 /
s:textfield key=domain.city /
s:textfield key=domain.state /
s:textfield key=domain.zip /


s:submit action=customer_cancel value=Cancel/
s:submit action=customer_save value=Save/
s:submit action=customer_print value=Print/
/s:if
/s:form

Scott

On Sat, Jan 1, 2011 at 8:53 AM, aum strut aum.str...@gmail.com 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

 tr
td
 class=buttoninput type=submit value=Import

 name=destinationImport class=button/td
td
 class=buttoninput type=submit value=Export

 name=destinationExport class=button/td
/tr

 here is the java part

 private boolean destinationImport;
private boolean destinationExport;
 and there respective setter and getter

 but i am sure is that Struts2 type convertor is having problem converting
 the String value to boolean do any one have idea how to achieve this

 i am using struts-2.2.1 version.

 Thanks in advance



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 not
sure I care either way, especially if I'm not manually generating all the
view-layer stuff.)

Dave

On Sun, Jan 2, 2011 at 5:20 PM, stanl...@gmail.com wrote:

 How about something  like this?

 s:form namespace=/customer 
 s:hidden key=domain.id /
 s:textfield key=domain.firstName /
 s:textfield key=domain.lastName /
 s:textfield key=domain.address1 /
 s:textfield key=domain.address2 /
 s:textfield key=domain.city /
 s:textfield key=domain.state /
 s:textfield key=domain.zip /


 s:submit action=customer_cancel value=Cancel/
 s:submit action=customer_save value=Save/
 s:submit action=customer_print value=Print/
 /s:if
 /s:form

 Scott

 On Sat, Jan 1, 2011 at 8:53 AM, aum strut aum.str...@gmail.com 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
 
  tr
 td
  class=buttoninput type=submit value=Import
 
  name=destinationImport class=button/td
 td
  class=buttoninput type=submit value=Export
 
  name=destinationExport class=button/td
 /tr
 
  here is the java part
 
  private boolean destinationImport;
 private boolean destinationExport;
  and there respective setter and getter
 
  but i am sure is that Struts2 type convertor is having problem converting
  the String value to boolean do any one have idea how to achieve this
 
  i am using struts-2.2.1 version.
 
  Thanks in advance
 



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

tr
td
class=buttoninput type=submit value=Import

name=destinationImport class=button/td
td
class=buttoninput type=submit value=Export

name=destinationExport class=button/td
/tr

here is the java part

private boolean destinationImport;
private boolean destinationExport;
and there respective setter and getter

but i am sure is that Struts2 type convertor is having problem converting
the String value to boolean do any one have idea how to achieve this

i am using struts-2.2.1 version.

Thanks in advance


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 aum.str...@gmail.com 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

 tr
td
 class=buttoninput type=submit value=Import

 name=destinationImport class=button/td
td
 class=buttoninput type=submit value=Export

 name=destinationExport class=button/td
/tr

 here is the java part

 private boolean destinationImport;
private boolean destinationExport;
 and there respective setter and getter

 but i am sure is that Struts2 type convertor is having problem converting
 the String value to boolean do any one have idea how to achieve this

 i am using struts-2.2.1 version.

 Thanks in advance



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 davelnew...@gmail.com wrote:

 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 aum.str...@gmail.com 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
 
  tr
 td
  class=buttoninput type=submit value=Import
 
  name=destinationImport class=button/td
 td
  class=buttoninput type=submit value=Export
 
  name=destinationExport class=button/td
 /tr
 
  here is the java part
 
  private boolean destinationImport;
 private boolean destinationExport;
  and there respective setter and getter
 
  but i am sure is that Struts2 type convertor is having problem converting
  the String value to boolean do any one have idea how to achieve this
 
  i am using struts-2.2.1 version.
 
  Thanks in advance
 



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 aum.str...@gmail.com 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 code depedent
with the form



On Sat, Jan 1, 2011 at 8:48 PM, Dave Newton davelnew...@gmail.com wrote:

 S2 would have no ide...


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 aum.str...@gmail.com 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 code depedent
 with the form


 On Sat, Jan 1, 2011 at 8:48 PM, Dave Newton davelnew...@gmail.com wrote:

  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 aum.str...@gmail.com 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
  
   tr
  td
   class=buttoninput type=submit value=Import
  
   name=destinationImport class=button/td
  td
   class=buttoninput type=submit value=Export
  
   name=destinationExport class=button/td
  /tr
  
   here is the java part
  
   private boolean destinationImport;
  private boolean destinationExport;
   and there respective setter and getter
  
   but i am sure is that Struts2 type convertor is having problem
 converting
   the String value to boolean do any one have idea how to achieve this
  
   i am using struts-2.2.1 version.
  
   Thanks in advance
  
 



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 davelnew...@gmail.com wrote:

 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 aum.str...@gmail.com 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 code
 depedent
  with the form
 
 
  On Sat, Jan 1, 2011 at 8:48 PM, Dave Newton davelnew...@gmail.com
 wrote:
 
   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 aum.str...@gmail.com
 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
   
tr
   td
class=buttoninput type=submit value=Import
   
name=destinationImport class=button/td
   td
class=buttoninput type=submit value=Export
   
name=destinationExport class=button/td
   /tr
   
here is the java part
   
private boolean destinationImport;
   private boolean destinationExport;
and there respective setter and getter
   
but i am sure is that Struts2 type convertor is having problem
  converting
the String value to boolean do any one have idea how to achieve this
   
i am using struts-2.2.1 version.
   
Thanks in advance
   
  
 



Re: Multiple Submit Buttons problem in Struts2

2011-01-01 Thread Dave Newton
On Sat, Jan 1, 2011 at 11:13 AM, aum strut aum.str...@gmail.com 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
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 davelnew...@gmail.com wrote:

 On Sat, Jan 1, 2011 at 11:13 AM, aum strut aum.str...@gmail.com 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 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 aum.str...@gmail.com wrote:

 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 davelnew...@gmail.com wrote:

  On Sat, Jan 1, 2011 at 11:13 AM, aum strut aum.str...@gmail.com 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!!!

On Sat, Jan 1, 2011 at 10:20 PM, Dave Newton davelnew...@gmail.com 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 aum.str...@gmail.com wrote:

  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 davelnew...@gmail.com
 wrote:
 
   On Sat, Jan 1, 2011 at 11:13 AM, aum strut aum.str...@gmail.com
 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 Dave Newton
So what might some of those ways be?

Dave

On Sat, Jan 1, 2011 at 2:33 PM, aum strut aum.str...@gmail.com wrote:

 agree!!!

 On Sat, Jan 1, 2011 at 10:20 PM, Dave Newton davelnew...@gmail.com
 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 aum.str...@gmail.com wrote:
 
   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 davelnew...@gmail.com
  wrote:
  
On Sat, Jan 1, 2011 at 11:13 AM, aum strut aum.str...@gmail.com
  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