Hi everyone-
I need some help on using the indexed
properties for html:text option. I've implemented Dave Hay's modification and
can get the input boxes to show up using the iterate tag.
<logic:iterate id="course" name="CourseList"
property="courseList">
<tr> <td><%= courseNumber++ %></td> <td><html:text name="course" property="crstitle" size="25" maxlength="50" indexed="true"/></td> <td><html:text name="course" property="crsdept" size="6" maxlength="9" indexed="true"/></td> <td><html:text name="course" property="crsnum" size="5" maxlength="6" indexed="true"/></td> <td><html:text name="course" property="crshrs" size="5" maxlength="1" indexed="true"/></td> </tr> </logic:iterate> This is what my CourseList bean looks like:
public final class CourseList extends
ActionForm
{ private ArrayList courseList = new ArrayList(6); public ArrayList
getCourseList() {
return(this.courseList); } public void setCourseList(ArrayList
courseList) {
this.courseList = courseList; } public CourseForm getCourseForm(int
index) {
return (CourseForm)courseList.get(index); }
public void setCourseForm(int index, CourseForm course) { this.courseList.add(index, course); } } The problem i have is that when i try to submit the
information and try to access CourseList.getCourseList(), it bombs and says
CourseList cannot be found. The scope is request. I tried putting it in the
session and can access it that way but it doesn't have the changes that were
made on the form. Anybody know what i'm doing wrong?
thanks,
cameron
|
- Indexed Properties Jason Rosenblum
- Re: Indexed Properties David Winterfeldt
- Re: Indexed Properties dhay
- RE: Indexed Properties Jason Rosenblum
- RE: Indexed Properties Rey Francois
- RE: indexed properties cahana
- RE: indexed properties Niall Pemberton
- Re: indexed properties cahana
- Re: indexed properties cahana
- Indexed properties Nathan Coast
- Re: Indexed properties dhay
- Re: Indexed properties James Howe
- Re: Indexed properties dhay
- Re: Indexed properties James Howe
- RE: Indexed properties Mark Mahieu
- Re: Indexed properties dhay