Re: Array Input Fields

2010-09-11 Thread Dave Newton
Depends. The OP wasn't using index notation (parens instead of brackets) so there'd need to be a getUsers. On Saturday, September 11, 2010, Chris Mawata wrote: >  On 9/10/2010 1:08 PM, adam pinder wrote: > > public User getUser(int occ) > > > Should the getter not return the collection rather tha

Re: Array Input Fields

2010-09-11 Thread Chris Mawata
On 9/10/2010 1:08 PM, adam pinder wrote: public User getUser(int occ) Should the getter not return the collection rather than a single User? Chris - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional co

Re: Managing code between Action Class and JSP.

2010-09-11 Thread Chris Mawata
On 9/10/2010 11:12 AM, Anjib Mulepati wrote: What about doing AJAX call and get result in progression? Isn't this will be efficient way? Having said that I am trying to find the way to work AJAX with Struts1 there is no clear way to do that even though AJAX is just a technology. Do anyone h

Re: Array Input Fields

2010-09-11 Thread Dale Newfield
therefore i'd expect the params interceptor to make calls like getUser(1).setName("smith") for the above input field sent to the server but it doesn't set the value or error - the params interceptor debug shows the correct name/value pair of user[1].name => [smith] I'd bet that the list

Re: Array Input Fields

2010-09-11 Thread Dave Newton
It is, and it should be doing it automatically. Can the OP post a minimal example showing the JSP and the action? Dave On Sat, Sep 11, 2010 at 11:22 AM, Burton Rhodes wrote: > I don't think Struts is that 'smart'. I would look into creating your > own StrutsTypeConverter. Very easy to do and yo

Re: Array Input Fields

2010-09-11 Thread Burton Rhodes
I don't think Struts is that 'smart'. I would look into creating your own StrutsTypeConverter. Very easy to do and you can specifically manipulate input variables from the form easily. On 9/10/10, adam pinder wrote: > > Using Struts 2.0.11 > > > > I have a jsp that creates elements like > > > >