Hi all,
With
Struts, I use logic:iterate tag to iterate over a list of informations. In each iterate, it has the input text field.
When the action is execute, it has the errors.
This is my code in
JSP page :
<logic:iterate scope="session" id="indexInfo" name="indexInfoList" >
<tr>
<td>
<html:text indexed="true" name="indexInfo" property="name" value="" />
</td>
</tr>
</logic:iterate>
"name" is the property of an object indexInfo.
And this is my Action Form : public class SearchForm extends ActionForm {
private
String[] name = new String[20];
...........
public String[] getName() {
return name;
}
public void setName(String[] strings) {
name = strings;
}
............
}
And this is my Action Servlet : ...........
String[] indexValue = ((SearchForm)form).getName();
...........
And when the action is execute, the error message is :
exception
javax.servlet.ServletException: BeanUtils.populate
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254)
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
cause m�re
java.lang.IllegalArgumentException: No bean specified
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUtils.java:837)
org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:934)
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252)
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
Any idear for this please !
I really need helps from you all !
regards,
Moniphal
[ August 17, 2004: Message edited by: Moniphal SAY ]