Re: is not sending the checked checkboxes value

2006-04-02 Thread 王曾wang_zeng
Thanks a lot.

Re: is not sending the checked checkboxes value

2006-04-02 Thread Laurie Harper
You set the checkbox's value using the 'value' attribute, funilly enough :-) L. 王曾wang_zeng wrote: hi: i have a question. in a multibox,the property attribute should be pointed to an array in the form bean,and this array will be checked to see if there exists such a element who's value equa

Re: is not sending the checked checkboxes value

2006-04-02 Thread Tarun Reddy
To solve this particular scenario, we've org.apache.struts.util.LabelValueBean class. Using this class we can display a Label(say "X") on multibox and send a different value(say "Y") to the server. Hope I'm able to answer your questions. Thanks, Tarun. On 4/2/06, 王曾wang_zeng <[EMAIL PROTECTED]> w

Re: is not sending the checked checkboxes value

2006-04-01 Thread 王曾wang_zeng
hi: i have a question. in a multibox,the property attribute should be pointed to an array in the form bean,and this array will be checked to see if there exists such a element who's value equals to the value set in the multibox. my question is how to set the value of multibox which will be used

Re: is not sending the checked checkboxes value

2006-03-31 Thread Max Cooper
2 things come to mind: 1) Make sure your ActionForm has the appropriate setter method. It wont be setDenyCodes(String value) since there can be many values. IIRC, you need a setter that takes a String array as an argument. I could be wrong -- do some research to be sure. 2) Make sure the URL

Re: is not sending the checked checkboxes value

2006-03-31 Thread Tarun Reddy
Hi Vijay, It's working fine now. I've just added a method="GET" attribute to tag. It's working perfectly fine. I don't have any idea how this solved the problem. Thanks for all your time. Thanks, Tarun. On 3/31/06, Tarun Reddy <[EMAIL PROTECTED]> wrote: > > Thanks Vijay! I've verified the value

Re: is not sending the checked checkboxes value

2006-03-31 Thread Tarun Reddy
Thanks Vijay! I've verified the value returned by request.getParameterValues("denyCodes") even before sending out this mail. I don't have any clue on how to proceed further. I'll try debugging it more. Thanks, Tarun. On 3/31/06, vijay venkataraman <[EMAIL PROTECTED]> wrote: > > Tarun, > If the va

Re: is not sending the checked checkboxes value

2006-03-31 Thread vijay venkataraman
Tarun, If the value in being rendered is in string array pointed by the property it will be rendered with checked attribute set. I know it works. It is bit weired that the set method is not being called i am not able to find what is happening. Do you see the values coming fine in the HttpReques

Re: is not sending the checked checkboxes value

2006-03-31 Thread Tarun Reddy
Hi Vijay, Thanks for the reply! I had a look at the HTML source generated by JSP page which contains multibox tag. Here are some sample entries, 216 415 05 Let me tell you, tag nested in the tag takes care of setting this value attirbute

Re: is not sending the checked checkboxes value

2006-03-31 Thread vijay venkataraman
The struts doc goes like this : *Multibox:* ** Renders an HTML element of type |checkbox|, whose "checked" status is initialized based on whether the specified value matches one of the elements of the underlying property's array of current values. This element is useful when you have large n

is not sending the checked checkboxes value

2006-03-31 Thread Tarun Reddy
Hi All, I've been wasting my time on one issue pertaining to tag. I'm writing a code which should generate multiple checkboxes dynamically on a JSP page. The JSP should send the checked checkboxes value to the Action class. But it's not sending any values. I've tried many approaches like 1)initial