Posted By:
Michael_Link
Posted On:
Friday, November 8, 2002 06:36 AM
I have a JavaBean in my session called Event. This bean contains an array of Param objects and has get and set methods as below to retrieve the array. I can edit all other "simple" values in the bean, but not the array. public class Event { ... private Param[] paramlist; ... public Param[] getParamlist() { return paramlist; } public void setParamlist(Param[] paramlist) { this.paramlist = paramlist; } } The Jsp form simply extracts these parameter objects and uses the element to display them. type="Param" name=" <%= Config.EVENT_ATTRIBUTE %
More>>
I have a JavaBean in my session called Event. This bean contains an array of Param objects and has get and set methods as below to retrieve the array. I can edit all other "simple" values in the bean, but not the array.
public class Event {
...
private Param[] paramlist;
...
public Param[] getParamlist() {
return paramlist;
}
public void setParamlist(Param[] paramlist) {
this.paramlist = paramlist;
}
}
The Jsp form simply extracts these parameter objects and uses the
element to display them.
type="Param"
name="
<%= Config.EVENT_ATTRIBUTE %>"
property="paramlist"
scope="session">
Name:
Value:
I can change the values (i.e. the second of the 2 html:text fields) on the web page, but when the form is submitted the changes are not reflected in the Event bean.
Is there anybody who can offer one or two lines of wisdom? Help very much appreciated!
Thanks, Mike