Hi,
I get this error when sending the parameters to action that saves the
information in tha database, the creation of the form is successfull.
Any ideas, about how to name the getters/setters for the indexed
properties.
This is part of the ActionForm code:
public class CaSkillAssessmentForm extends ActionForm
{
/******************************************************************************
Attributes
******************************************************************************/
/**
* Skills with Scope
*/
private Vector skillsWithScore = new Vector();
/******************************************************************************
Accessors
******************************************************************************/
/**
* Get skillsWithScope
* @return Collection
*/
public CbSkill getSkillsWithScoreIndexed(int index)
{
return (CbSkill) skillsWithScore.get(index);
}
/**
* Get skillsWithScope
* @return Collection
*/
public Vector getSkillsWithScore()
{
return skillsWithScore;
}
/**
* Set skillsWithScope
* @param <code>int</code>
* @param <code>Collection</code>
*/
public void setSkillsWithScoreIndexed(int index, CbSkill paramSkillsWithScore)
{
skillsWithScore.add(index, paramSkillsWithScore);
}
/**
* Set skillsWithScope
*
* @param paramSkills
*/
public void setSkillsWithScore(Vector paramSkills)
{
skillsWithScore = paramSkills;
}
/******************************************************************************
Public Operations
******************************************************************************/
public void reset(ActionMapping mapping, HttpServletRequest request)
{
skillsWithScore = null;
}
public ActionErrors validate(
ActionMapping mapping,
HttpServletRequest request)
{
ActionErrors errors = new ActionErrors();
return errors;
}
}
This is the
jsp:
<logic:iterate id="skills" name="caSkillAssessmentForm" property="skillsWithScore" indexId="index">
<tr valign="middle" class="datatablecolor2">
<td class="tdleft">
<bean:write name="skills" property="name"/>
</td>
<td class="tdleft">
<html:radio property="<%= \"skillsWithScoreIndexed[\"+ index+\"].scoreId\"%>" value="1"/>
</td>
<td class="tdleft">
<html:radio property="<%= \"skillsWithScoreIndexed[\"+ index+\"].scoreId\"%>" value="2"/>
</td>
<td class="tdleft">
<html:radio property="<%= \"skillsWithScoreIndexed[\"+ index+\"].scoreId\"%>" value="3"/>
</td>
<td class="tdleft">
<html:radio property="<%= \"skillsWithScoreIndexed[\"+ index+\"].scoreId\"%>" value="4"/>
</td>
</tr>
</logic:iterate>