struts and <html:file> tag
843836Feb 7 2005 — edited Dec 5 2005hi everybody,
I'm stuck with a problem concerning struts & html:file> tag.
I've already read other topics thereabout but haven't find a solution...
struts-config.xml
<form-bean name="EAIForm"
type="be.econocom.ecopeople.EAIS.http.form.EAIForm">
</form-bean>
ActionForm Class
public class EAIForm extends ActionForm{
private FormFile File;
// Getter for file
public FormFile getFile() {
return File;
}
// Setter for file
public void setFile(FormFile file) {
File = file;
}
}
jsp file
<html:form action="AddEAI.do" enctype="multipart/form-data">
<table align=center valign=top border="0">
<tr>
<td>Add a file : </td>
<td><html:file property="File"/></td>
</tr>
<tr>
<td align='center' colspan='2'>
<html:submit styleClass="verplicht"/>
</td>
</tr>
</table><BR>
</html:form>
browser error
javax.servlet.jsp.JspException: No getter method for property File of bean
org.apache.struts.taglib.html.BEAN
at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:517)
at org.apache.struts.taglib.html.BaseFieldTag.doStartTag(BaseFieldTag.java:188)
at eai_jsp._jspService(/ecopeople/EAI.jsp:30)
at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
at com.caucho.jsp.Page.subservice(Page.java:486)
at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182)
at com.caucho.http.security.SecurityFilter.doFilter(SecurityFilter.java:115)
at com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java:88)
at com.caucho.server.http.Invocation.service(Invocation.java:311)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:218)
at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:160)
at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
at java.lang.Thread.run(Thread.java:536)
Could somebody give me help please ...
thanxx