Can a collection property have its changes saved back to the ActionForm?

2010-03-15 Thread Andrew Sharpe
Hello all, I have a List collection that I am displaying in an and it is working great. The problem is that my jsp page makes changes to that control via javascript (adds new options, removes, etc). I would like these changes to be saved back to the ActionForm, preferrably to the same collecti

Re: Cannot find bean: "sendJsp" in any scope

2010-03-16 Thread Andrew Sharpe
I think you want: See the docs on logic:iterate for more info: http://struts.apache.org/1.0.2/struts-logic.html#iterate If this still doesn't work I would recommend trying to first output a String property to verify you have everything setup properly. - Original Message Fro

Re: Cannot find bean: sendJsp in any scope

2010-03-17 Thread Andrew Sharpe
d logic iterate i will be >thankful if you share it with me > >Andrew Sharpe-2 wrote: >> >> I think you want: >> >> >> >> >> >> See the docs on logic:iterate for more info: >> http://struts.apache.org/1.0.2/struts-logic.html#iter

Re: Cannot find bean: sendJsp in any scope

2010-03-17 Thread Andrew Sharpe
arraylist and added String property but cant show them always the same error.I'm losing my mind i have a problem with listing array elements.I really be thankful to you really send me a working example.i'm waiting for your reply thanks again Andrew Sharpe-2 wrote: > > Along with t

Re: Can a collection property have its changes saved back to the ActionForm?

2010-03-17 Thread Andrew Sharpe
ideas I'm open to hearing them, but this seems to do the trick. Andrew - Original Message From: Andrew Sharpe To: user@struts.apache.org Sent: Mon, March 15, 2010 6:03:30 PM Subject: Can a collection property have its changes saved back to the ActionForm? Hello all, I have a Lis

Re: Can a collection property have its changes saved back to the ActionForm?

2010-03-22 Thread Andrew Sharpe
ic String getSelectedValue() > > public void setNewList(int index, String value) > > JSP: > > > > > > > > > > Then the setNewList method gets called on the form with the new values from > the select box. > > If anyone has any better ideas I&

Re: Can a collection property have its changes saved back to the ActionForm?

2010-03-22 Thread Andrew Sharpe
Apologies all, I am editing my solution below for clarity and accuracy: - Original Message From: Andrew Sharpe To: Struts Users Mailing List Sent: Mon, March 22, 2010 8:44:42 AM Subject: Re: Can a collection property have its changes saved back to the ActionForm? Thanks Adam. I