I am getting a compilation error on my jsp, which seems to indicate a
problem with the action mappings.  One jsp, the custLogin.jsp compiles fine,
whereas the custJoin.jsp throws this exception compiling
"javax.servlet.ServletException: No getter method for property
sFirstName of bean org.apache.struts.taglib.html.BEAN ". 
I do have all of the getters and setters in the customerJoinForm. The action
mappings for these two forms seem to be consistent.  The relevant code:

custJoin.jsp:
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
...
<html:form action="/custjoin.do">
...
First Name:
 <td align="left">
  <html:text property="sFirstName" size="16" maxlength="50"/></td>
...
</html:form>

custLogin.jsp:
...
<html:form action="/custlogin.do">
...

struts-config.xml:

<form-beans>
  <!-- Customer join form bean -->
    <form-bean      name="customerJoinForm"
                    type="com.bmp.action.CustomerJoinForm"/>

  <!-- Customer login form bean -->
    <form-bean      name="customerLoginForm"
                    type="com.bmp.action.CustomerLoginForm"/>

</form-beans>

<global-forwards>
        <forward   name="custjoin"  path="/custJoin.jsp"/>
        <forward   name="custlogin" path="/custLogin.jsp"/>
</global-forwards>

<action-mappings>
  <!-- Process a customer join -->
    <action    path="/custjoin"
               type="com.bmp.action.CustomerJoinAction"
               name="customerJoinForm"
               scope="request"
               input="/custJoin.jsp"
               validate="true">
        <forward name="success" path="/custAccount.jsp" />
        <forward name="failure" path="/error.jsp" />
    </action>

  <!-- Process a user logon -->
    <action    path="/custlogin"
               type="com.bmp.action.CustomerLoginAction"
               name="customerLoginForm"
               scope="request"
               input="/custLogin.jsp"
               validate="true">
        <forward name="success" path="/custAccount.jsp" />
        <forward name="failure" path="/custLogin.jsp" />
    </action>

</action-mappings>

Any ideas what's going on here?  I am using Tomcat3.2.2, Struts 1.0 and
Apache1.3.20.

Thanks,
Alex

Reply via email to