Checkbox problem

2004-01-31 Thread Janarthan Sathiamurthy
Hi Group, I am using Struts 1.1 version. I have a page in which i display a set of checkboxes(10 checkboxes to be specific). All the checkboxes have the same name and have different values. I have an ActionForm for this. In the ActionForm, i have a String[] checkBoxArr to represent these chec

RE: Checkbox problem?

2003-06-11 Thread Bjørn T Johansen
Johansen [mailto:[EMAIL PROTECTED] > > Sent: June 10, 2003 12:38 PM > > To: Struts Users Mailing List > > Subject: Re: Checkbox problem? > > > > > > oki, maybe my explanation isn't the best :) (I know that I can't do it > > in the reset method, as

RE: Checkbox problem?

2003-06-10 Thread Wendy Smoak
Steve wrote: > The suggested method requires two actions. > SetupAction -> Form -> ProcessAction > The first action prepares any values required by your form, > including setting the value of your checkboxes to true. The > second action is the one that actually processes the user > input gathe

RE: Checkbox problem?

2003-06-10 Thread Steve Raeburn
Hope this clarifies things. Steve > -Original Message- > From: Bjørn T Johansen [mailto:[EMAIL PROTECTED] > Sent: June 10, 2003 12:38 PM > To: Struts Users Mailing List > Subject: Re: Checkbox problem? > > > oki, maybe my explanation isn't the best :) (I kno

RE: Checkbox problem?

2003-06-10 Thread Karr, David
ing the form) will determine whether the checkboxes are set or not. > -Original Message- > From: Bjørn T Johansen [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 10, 2003 12:38 PM > To: Struts Users Mailing List > Subject: Re: Checkbox problem? > > oki, maybe my expl

Re: Checkbox problem?

2003-06-10 Thread Kevin Robair
You can pre-populate the form in a previous action. Here is an example. http://jakarta.apache.org/struts/faqs/newbie.html#prepopulate -Kevin --- Bjørn T Johansen <[EMAIL PROTECTED]> wrote: > oki, maybe my explanation isn't the best :) (I know that I can't do it > in the reset method, as it is cl

RE: Checkbox problem?

2003-06-10 Thread Josh Rayls
s Users Mailing List Subject: Re: Checkbox problem? oki, maybe my explanation isn't the best :) (I know that I can't do it in the reset method, as it is clearly not working) but I am still not sure where to put the code to set the checkbox to true then. As far as I know, the action class

Re: Checkbox problem?

2003-06-10 Thread Bjørn T Johansen
oki, maybe my explanation isn't the best :) (I know that I can't do it in the reset method, as it is clearly not working) but I am still not sure where to put the code to set the checkbox to true then. As far as I know, the action class isn't called before after the form bean has called the reset

RE: Checkbox problem?

2003-06-10 Thread Mark Galbreath
Go get 'em, James! -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 2:29 PM To: Struts Users Mailing List Subject: Re: Checkbox problem? On Tuesday 10 June 2003 14:11, Bjørn T Johansen wrote: > You are missing my point! If I just c

Re: Checkbox problem?

2003-06-10 Thread James Mitchell
On Tuesday 10 June 2003 14:11, Bjørn T Johansen wrote: > You are missing my point! If I just could set the checkbox value to > false in the reset method, everything is fine. But there are times when > that value has to be reset to true and not false and if I do that in my > reset method, I am not a

Re: Checkbox problem?

2003-06-10 Thread Bjørn T Johansen
You are missing my point! If I just could set the checkbox value to false in the reset method, everything is fine. But there are times when that value has to be reset to true and not false and if I do that in my reset method, I am not able to see of the user unchek the checkbox, because the boolean

Re: Checkbox problem?

2003-06-10 Thread Tor Henrik Hanken
[EMAIL PROTECTED] | Yes, but to clarify... | I am showing a jsp page with values read from a database. If the | checkbox value is true, how do I then make the checkbox on my jsp-page | checked and how do I then find out if the checkbox has been unchecked? | Do I have to manually read the posted da

RE: Checkbox problem?

2003-06-10 Thread Kevin Robair
propagated by struts after the reset by the setters > and getters. Just put in some logging or print > statements in those methods and you will see when > they are invoked. > > > > -Original Message- > > From: Bjorn T Johansen [mailto:[EMAIL PROTECTED] >

RE: Checkbox problem?

2003-06-10 Thread Bjørn T Johansen
et by the setters and getters. Just put in some logging or print > statements in those methods and you will see when they are invoked. > > -Original Message- > From: Bjorn T Johansen [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 10, 2003 4:27 AM > To: [EMAIL PROTECTED]

RE: Checkbox problem?

2003-06-10 Thread Kamholz, Keith (corp-staff) USX
to do this I'd be interested in hearing it. Keith Kamholz Programming and Architecture Moog Inc. Phone: (716) 687-7001 -Original Message- From: Bjorn T Johansen [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 4:27 AM To: [EMAIL PROTECTED] Subject: Checkbox problem?

RE: Checkbox problem?

2003-06-10 Thread Kandi Potter
they are invoked. -Original Message- From: Bjorn T Johansen [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 4:27 AM To: [EMAIL PROTECTED] Subject: Checkbox problem? I use checkboxes to input some variables in a form and as long as I insert new records, i.e. the checkbox variable

Re: Checkbox problem?

2003-06-10 Thread James Mitchell
Can you describe what's going on in more detail? -- James Mitchell Software Developer/Struts Evangelist http://www.struts-atlanta.org - Original Message - From: "Bjorn T Johansen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 10, 2003 4:26 A

Antwort: Checkbox problem?

2003-06-10 Thread Manuel Lenz
| | Kopie: | | Thema: Checkbox problem? | >| I

Checkbox problem?

2003-06-10 Thread Bjorn T Johansen
I use checkboxes to input some variables in a form and as long as I insert new records, i.e. the checkbox variable gets set to false in the form's reset method, it works fine. But when I, say, edit the same record (and propagate the values of the form in the reset method), I never can uncheck the c

Re: AW: checkbox problem

2002-11-11 Thread Craig R. McClanahan
On Mon, 11 Nov 2002, Hirschmann, Bernhard wrote: > Date: Mon, 11 Nov 2002 14:42:05 +0100 > From: "Hirschmann, Bernhard" <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: 'Struts Users Mailing List' <[EM

Re: AW: AW: AW: checkbox problem

2002-11-11 Thread Gemes Tibor
2002. november 11. 15:14 dátummal Hirschmann, Bernhard ezt írtad: > One final question: > do I have to call form.reset() manually, or is this done automatically? give it a try ;-) Tib yes it is called automagically -- To unsubscribe, e-mail:

AW: AW: AW: checkbox problem

2002-11-11 Thread Hirschmann, Bernhard
: Struts Users Mailing List Betreff: Re: AW: AW: checkbox problem 2002. november 11. 15:01 dátummal Hirschmann, Bernhard ezt írtad: > Hey Tib, > > if I get you right, then the boolean value in the form will NOT be set to > false, if I uncheck the cb and hit submit? Is that right? Yes.

Re: AW: AW: checkbox problem

2002-11-11 Thread Gemes Tibor
2002. november 11. 15:01 dátummal Hirschmann, Bernhard ezt írtad: > Hey Tib, > > if I get you right, then the boolean value in the form will NOT be set to > false, if I uncheck the cb and hit submit? Is that right? Yes. The cb sends the parameter iff it is checked. If the form is stored in the s

/ /OREF:CPTD2D27 RE: checkbox problem

2002-11-11 Thread avasey
cc: Subject: RE: checkbox problem 11/11/2002 03:46

AW: AW: checkbox problem

2002-11-11 Thread Hirschmann, Bernhard
Betreff: Re: AW: checkbox problem 2002. november 11. 14:42 dátummal Hirschmann, Bernhard ezt írtad: > Thanks for your comment, but I'm not sure if that's the problem. > > Here is the scenario: > 1.) While populating the form, the value is true. > 2.) Then the user disables t

Re: AW: checkbox problem

2002-11-11 Thread Gemes Tibor
2002. november 11. 14:42 dátummal Hirschmann, Bernhard ezt írtad: > Thanks for your comment, but I'm not sure if that's the problem. > > Here is the scenario: > 1.) While populating the form, the value is true. > 2.) Then the user disables the checkbox - for setting the value to false. > 3.) Submit

AW: checkbox problem

2002-11-11 Thread Hirschmann, Bernhard
e that it is true" means: 4.) "In the action I INSPECT the value and I see that it is true" ;-) -Ursprüngliche Nachricht- Von: Saini, Deepank [mailto:deepank.saini@;cgey.com] Gesendet: Montag, 11. November 2002 14:46 An: 'Struts Users Mailing List' Betreff: RE: c

RE: checkbox problem

2002-11-11 Thread Saini, Deepank
? -Original Message- From: Hirschmann, Bernhard [mailto:Bernhard.Hirschmann@;t-systems.com] Sent: Monday, November 11, 2002 7:12 PM To: 'Struts Users Mailing List' Subject: AW: checkbox problem Thanks for your comment, but I'm not sure if that's the problem. Here is the

AW: checkbox problem

2002-11-11 Thread Hirschmann, Bernhard
it is true. Do I really have to reset the form for such a scenario? Regards, Bernhard -Ursprüngliche Nachricht- Von: James Mitchell [mailto:jmitchtx@;telocity.com] Gesendet: Montag, 11. November 2002 14:36 An: Struts Users Mailing List Betreff: RE: checkbox problem You need to set it t

RE: checkbox problem

2002-11-11 Thread Saini, Deepank
if u want uncheck the box, after a submit , set it to false -Original Message- From: James Mitchell [mailto:jmitchtx@;telocity.com] Sent: Monday, November 11, 2002 7:06 PM To: Struts Users Mailing List Subject: RE: checkbox problem You need to set it to false in the reset() method

RE: checkbox problem

2002-11-11 Thread James Mitchell
-Original Message- > From: Saini, Deepank [mailto:deepank.saini@;cgey.com] > Sent: Monday, November 11, 2002 8:33 AM > To: 'Struts Users Mailing List' > Subject: RE: checkbox problem > > > may u need to reset the value of the checkbox to (false or true) in the >

RE: checkbox problem

2002-11-11 Thread Saini, Deepank
may u need to reset the value of the checkbox to (false or true) in the reset method of ur formbean -Original Message- From: Hirschmann, Bernhard [mailto:Bernhard.Hirschmann@;t-systems.com] Sent: Monday, November 11, 2002 7:00 PM To: '[EMAIL PROTECTED]' Subject: checkbox proble

checkbox problem

2002-11-11 Thread Hirschmann, Bernhard
Hello Struts user! I use a html:checkbox for setting a boolean value. But after submit, the boolean value in the form bean isn't set correctly. Do I have to use a String value for that in my form bean? I tried this, but without success. Regards, Bernhard -- To unsubscribe, e-mail:

RE: Checkbox problem

2002-10-24 Thread Sri Sankaran
02 3:19 AM To: '[EMAIL PROTECTED]' Subject: Checkbox problem In my form bean I have an attribute which is an Arraylist of objects who in turn contain many attributes one of which is a string representing a checkbox of my screen. Problem : -When I check anyof the check boxe

Checkbox problem

2002-10-24 Thread Kishore, Sahu
In my form bean I have an attribute which is an Arraylist of objects who in turn contain many attributes one of which is a string representing a checkbox of my screen. Problem : -When I check anyof the check boxes and proceed to the next screens and comeback again to the screen having

RE: multibox, checkbox PROBLEM FOUND, SOLUTION NOT!!!

2002-10-19 Thread Wendy Smoak
Kiuma wrote: > I've found a tip placing code in validate method : > But it's a very dirty technique of course. That will work, but... what if you have a form that you don't want to validate? The reason this is working is that you have validate set to true so that the validate method gets called.

Re: multibox, checkbox PROBLEM FOUND, SOLUTION NOT!!!

2002-10-19 Thread kiuma
Thanks a lot , you have been very clarifying. I've found a tip placing code in validate method : public ActionErrors validate( ActionMapping mapping, HttpServletRequest req) { String str = req.getParameter( "isOn" ); if (str == null) isOn = false; return nu

Re: multibox, checkbox PROBLEM FOUND, SOLUTION NOT!!!

2002-10-19 Thread C. Struts
lse in the reset() method." -c - Original Message - From: "Wendy Smoak" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, October 19, 2002 12:03 PM Subject: RE: multibox, checkbox PROBLEM FOUND, SOLUTION NOT!!!

RE: multibox, checkbox PROBLEM FOUND, SOLUTION NOT!!!

2002-10-19 Thread Wendy Smoak
I'm coming into this discussion late, so ignore me if I'm out in left field, but it sounds like you're unhappy that when *no* checkboxes are checked, *no* methods get called. When you submit the form, only "successful" form elements are sent in the request, so if *no* checkboxes are checked, *not

Re: multibox, checkbox PROBLEM FOUND, SOLUTION NOT!!!

2002-10-19 Thread kiuma
Ok suppose to have a Form with a checkbox named "isOn" and a submit button name "Save" a NOT checked value will produce: http://localhost:8080/webappointments/openChk.do?action=Save a checked value will produce: http://localhost:8080/webappointments/openChk.do?isOn=on&action=Save The problem i

RE: CheckBox problem in struts..

2002-04-06 Thread Alex Paransky
, April 05, 2002 7:35 AM To: [EMAIL PROTECTED] Subject: CheckBox problem in struts.. Hi Could anyone explain about the checkbox problem in struts if i have a checkbox in a jsp and if i set the value of the bean to yes, true or on, the checkbox will be checked. But if i try to set the value of th

RE: CheckBox problem in struts..

2002-04-06 Thread srinivas
reset the check box values in the struts form reset method. -Original Message- From: Sachin [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 6:35 PM To: [EMAIL PROTECTED] Subject: CheckBox problem in struts.. Hi Could anyone explain about the checkbox problem in struts if i

CheckBox problem in struts..

2002-04-06 Thread Sachin
Hi Could anyone explain about the checkbox problem in struts if i have a checkbox in a jsp and if i set the value of the bean to yes, true or on, the checkbox will be checked. But if i try to set the value of the checkbox in the bean it is not getting set. if i submit data from checkbox it is not

Re: Checkbox problem still not fixed :(

2001-06-28 Thread Joel Vogt
it works, but...   Any other solutions?   Btw Thanks to all the people offering help on this, it seems struts has a good community going.   Joel. - Original Message - From: Joel Vogt To: [EMAIL PROTECTED] Sent: Thursday, June 28, 2001 10:04 AM Subject: Checkbo

Re: Checkbox problem still not fixed :(

2001-06-28 Thread Linnea Ahlbeck
Subject: Checkbox problem still not fixed :( Hi everyone.   I've tried just about everything in the mail archive but can't get check/multi boxes to perform how I want to. I use an iterate tag over a collection, basically on my jsp page I have as follows  

Checkbox problem still not fixed :(

2001-06-28 Thread Joel Vogt
Hi everyone.   I've tried just about everything in the mail archive but can't get check/multi boxes to perform how I want to. I use an iterate tag over a collection, basically on my jsp page I have as follows   blah blah   In my form bean I have an array pk[] and another member[]. In the