Re: Exception using ParametersInterceptor to fill a Set

2009-10-22 Thread Marcelo Salhab Brogliato
I discovered this last night :) thanks for your help!! msbrogli On Oct 22, 2009, at 10:57 PM, Steven Yang wrote: actually you dont need to do that i only do action: private Set email; public void setEmail(Set email) { this.email = email; } jsp: ... then struts will populate it for me

Re: Exception using ParametersInterceptor to fill a Set

2009-10-22 Thread Steven Yang
actually you dont need to do that i only do action: private Set email; public void setEmail(Set email) { this.email = email; } jsp: ... then struts will populate it for me On Thu, Oct 22, 2009 at 1:12 PM, Marcelo Salhab Brogliato < msbro...@vialink.com.br> wrote: > Hi Steven, > I know tha

Re: Exception using ParametersInterceptor to fill a Set

2009-10-21 Thread Marcelo Salhab Brogliato
Hi Steven, I know that Set usually don't have orders. But how do I fill my set? I tried email[0] because I implemented this setter: void setEmail(int index, String email), and it just ignored index. It was a test. thanks, msbrogli On Oct 22, 2009, at 2:56 AM, Steven Yang wrote: Set usually

Re: Exception using ParametersInterceptor to fill a Set

2009-10-21 Thread Steven Yang
Set usually dont have orders unless specifically implemented forif you need to preserver order then use List then email[0] will work On Thu, Oct 22, 2009 at 12:38 PM, Marcelo Salhab Brogliato < msbro...@vialink.com.br> wrote: > I made some tests in a very simple application now and I got this res

Re: Exception using ParametersInterceptor to fill a Set

2009-10-21 Thread Marcelo Salhab Brogliato
I made some tests in a very simple application now and I got this results: Will add these emails to my set. But how can I access the first one? I'm trying this: But this is not evaluating attribute value. Why? I tried: mystringset.toArray()[0] but it also didn't work. thanks! msbrogli

Exception using ParametersInterceptor to fill a Set

2009-10-21 Thread Marcelo Salhab Brogliato
Hi, in my action I have a client object that has a Set email. In my http request, I have these data: client.email[0] = 'a...@def.com' client.email[1] = 'a...@b2.com' client.email[2] = 'a...@b2.com' But I'm getting an error in ParametersInteceptor. I created these setters: public void setEmail(