Re: Help with html:select multiple="true"

2007-11-28 Thread john feng
Did you use ctrl or shift key and mouse to select multiple elements(less than 5 in your case), then submit it? On 11/21/07, Adrian Marrero <[EMAIL PROTECTED]> wrote: > > Hi, > > Sorry about reposting this topic and forgetting to put a subject the first > time. > > Here is my issue. > > Goal: > I w

Re: Help with html:select multiple="true"

2007-11-26 Thread Paul Benedict
Something totally goofy is going on in your example. You showed a form in XML and then a form in Java. You can only do one, not both together. Paul On Nov 26, 2007 12:58 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > I thought you were defining your form in your XML > file. > > Why won't you derefe

Re: Help with html:select multiple="true"

2007-11-26 Thread Dave Newton
I thought you were defining your form in your XML file. Why won't you dereference it *again* and see what data is there? --- amarr003 <[EMAIL PROTECTED]> wrote: > > Isn't dereferencing the array equivalent to: > attr[0]? > If it is then the data I get is not what I expect, > it is > Ljava.lang.

Re: Help with html:select multiple="true"

2007-11-26 Thread amarr003
Isn't dereferencing the array equivalent to: attr[0]? If it is then the data I get is not what I expect, it is Ljava.lang.String;@57125f92. Which is the problem that I am having. My form is defined as follows: private String [] selectedAttributes; public String [] getSelectedAttributes() { retur

Re: Help with html:select multiple="true"

2007-11-26 Thread Dave Newton
I'd assume you've made an error defining your form or the accessor in the form. If you dereference the array do you get the data you expect? --- amarr003 <[EMAIL PROTECTED]> wrote: > > Thank you for responding to me both times. However, > I have tried both > declarations and I get the same resul

Re: Help with html:select multiple="true"

2007-11-26 Thread amarr003
Thank you for responding to me both times. However, I have tried both declarations and I get the same result. and I know that Ljava.lang.String is an array of strings, however, either it is being processed wrong, or I do not know how to process the data correctly. Lets say that the ListBox has

Re: Help with html:select multiple="true"

2007-11-21 Thread Adrian Marrero
d my issue better and that we can work together to find a solution. Thank you and anyone else in advance. Adrian -- Forwarded message -- From: Dave Newton <[EMAIL PROTECTED]> To: Struts Users Mailing List Date: Wed, 21 Nov 2007 08:03:52 -0800 (PST) Subject: Re: Help with html

Re: Help with html:select multiple="true"

2007-11-21 Thread Dave Newton
Please see my response to your first message. Ljava.lang.String *is* an array of strings, and it wasn't clear to me why you didn't declare your dyna form field to be an array of strings (you had it as a single string). d. --- Adrian Marrero <[EMAIL PROTECTED]> wrote: > Hi, > > Sorry about repo