Re: problem with List-Backed Form

2005-01-15 Thread Dakota Jack
Could you restart this thread under another name and show us what you have now on your JSP page and in your Action and ActionForm? That would clarify things so you could get a clear answer. Jack - To unsubscribe, e-mail: [EMAIL

Re: problem with List-Backed Form

2005-01-15 Thread Oleg
You are absolutely right and I finally got it dsiplaying the way I want it, still on submit I get java.lang.NullPointerException org.apache.commons.beanutils.PropertyUtils.getIndexedProperty On Sat, 15 Jan 2005 15:23:20 -0800, Dakota Jack <[EMAIL PROTECTED]> wrote: > If you have a select

Re: problem with List-Backed Form

2005-01-15 Thread Dakota Jack
If you have a select, you don't want an ArrayList from request scope. You want the value selected to be the value of the option name. Right? Also, you can do indexed properties with JSTL. Jack On Sat, 15 Jan 2005 14:31:27 -0800, Oleg <[EMAIL PROTECTED]> wrote: > Ok I got I think, the problem

Re: problem with List-Backed Form

2005-01-15 Thread Oleg
Ok I got I think, the problem is, silly of me to miss it, is that the action to which I am posting using a different ActionForm :) that would screw things up :)/ Problem is that I have to use that ActionForm, so now I have to do it porgrammatically, but from what I understand I cant get an ArrayLi

Re: problem with List-Backed Form

2005-01-15 Thread Oleg
Ok I tried that and a couple of more things. I can see what Kishore trying to do, using indexed properties. However using login iterate loop with indexed property didnt work and I was getting: cannot find fields[0].label in the bean. So I replaced that with

Re: problem with List-Backed Form

2005-01-15 Thread Oleg
Ok I tried that and a couple of more things. I can see what Kishore trying to do, using indexed properties. However using login iterate loop with indexed property didnt work and I was getting: cannot find fields[0].label in the bean. So I replaced that with

Re: problem with List-Backed Form

2005-01-15 Thread Dakota Jack
I don't know what Kishore is talking about. Seems what you do is better than that suggestion. However, if you want the field from the form saved, populated, etc., all you have to do is have a property for the field, e.g. protected String field; public String getField() { return field; { public

Re: problem with List-Backed Form

2005-01-15 Thread Kishore Senji
Sorry forgot to tack on the actual property /// similarly for other fields On Sat, 15 Jan 2005 02:32:48 -0600, Kishore Senji <[EMAIL PROTECTED]> wrote: > On Fri, 14 Jan 2005 23:20:47 -0800, Oleg <[EMAIL PROTECTED]> wrote: > > Hi, ok I am trying to g

Re: problem with List-Backed Form

2005-01-15 Thread Kishore Senji
On Fri, 14 Jan 2005 23:20:47 -0800, Oleg <[EMAIL PROTECTED]> wrote: > Hi, ok I am trying to get my Dynamic List-Backed form to work, no > luck, here is what I have so far. > > ActionForm with a List in it: > > public ArrayList getFields() { >return fields; > } > > public void setFields(Ar