Hi,
I'm following chapter 3 of Struts book to the letter.. using struts 1.3.5, Tomcat 5.5... get error on index.jsp... pls see screen-shot here..
www.mayacove.com/java/error.gif
did index.jsp, and the classes, all following instructions in the book, the classes (LookupForm and LookupAction) compile fine.. put the packages from Jakarta Struts download where they belong..
error says "org.apache.jasper.JasperException: /index.jsp(34,0) Unable to find setter method for attribute: name..."
which refers to this line in jsp:
<html:form action="Lookup" name="lookupForm" type="ch03.LookupForm">
what is wrong with "name" attribute....
JSP servlet is not non-existent (when look in tomcat/work/.... etc.. don't see either index_jsp.java or index_jsp.class..) i.e. JSP for some reason is not even being read by container..)
I have in struts-config.xml:
<form-beans>
<form-bean name="lookupForm" type="ch03.LookupForm" />
</form-beans>
<action path="/Lookup" type="ch03.LookupAction" name="lookupForm">....</action>
in LookupAction.java:
LookupForm lookupForm = (LookupForm)form;
(this is confusing: so lookupForm is name of form but also an instantiation of the other class in the package...(??)
would appreciate any leads.. thank you..