Thanks, Erez -- it worked! --- Erez Efrati <[EMAIL PROTECTED]> wrote: > Yep, it is case sensivite.. in your JSP it's > orgid.. not orgId as > should be. > > Erez > > -----Original Message----- > From: David Graham > [mailto:[EMAIL PROTECTED] > Sent: Friday, August 15, 2003 6:06 PM > To: Struts Users Mailing List > Subject: Re: No getter method -- Please HELP! > > You need to use the property name "orgId" in your > JSP because your > getter > method is getOrgId(). > > David > > > --- Mitesh Kapadia <[EMAIL PROTECTED]> wrote: > > Hello. > > > > I have been having some problems when trying to > render > > my jsp. I get the following error message: > > > > org.apache.jasper.JasperException: No getter > method > > for property orgid of bean > > org.apache.struts.taglib.html.BEAN > > > > My web.xml file has the following entry for > > servlet-mapping: > > <!-- Action Servlet Mapping --> > > > > <servlet-mapping> > > <servlet-name>action</servlet-name> > > <url-pattern>/do/*</url-pattern> > > </servlet-mapping> > > > > My struts-configm.xml file: > > <!DOCTYPE struts-config PUBLIC > > "-//Apache Software Foundation//DTD > Struts > > Configuration 1.1//EN" > > > > > "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd" > > > > > <struts-config> > > <!-- Form Bean Definitions --> > > <form-beans> > > <form-bean name="orgidActionForm" > > type="net.reumann.OrgIdActionForm"/> > > </form-beans> > > <!-- Action Mapping Definitions --> > > <action-mappings> > > <action path="/setupEmployeeForm" > > forward="/employeeForm.jsp"/> > > > > <action path="/orgidAction" > > type="net.reumann.OrgIdAction" > > name="orgidActionForm" > > scope="request" > > validate="true" > > > > > <forward > > name="success" > > path="/confirmation.jsp"/> > > </action> > > </action-mappings> > > <!-- message resources --> > > <message-resources > > parameter="ApplicationResources" > > null="false" /> > > </struts-config> > > > > Here is the code from my index.jsp page: > > <%@ taglib uri="struts/bean-el" prefix="bean" %> > > <%@ taglib uri="struts/html-el" prefix="html" %> > > <html> > > <head> > > <link href="<html:rewrite page="/rr.css" />" > > rel="stylesheet" type="text/css"> > > <title>STRUTS Benchmark</title> > > </head> > > <body> > > > > <html:errors/> > > > > <html:form action="/orgidAction" focus="orgid"> > > <table border="0" width="100%"> > > > > <tr> > > <th align="right"> > > <bean:message key="prompt.orgid"/>: > > </th> > > <td align="left"> > > <html:text property="orgid" size="16" > > maxlength="18"/> > > </td> > > </tr> > > > > <tr> > > <th align="right"> > > <bean:message key="prompt.facilid"/>: > > </th> > > <td align="left"> > > <html:password property="facilid" size="16" > > maxlength="18"/> > > </td> > > </tr> > > > > <tr> > > <td align="right"> > > <html:submit value="Submit"/> > > </td> > > <td align="left"> > > <html:reset/> > > </td> > > </tr> > > > > </table> > > > > </html:form> > > > > </body> > > </html:html> > > > > Here is the code from my OrgIdActionForm: > > package net.reumann; > > > > import org.apache.struts.action.*; > > import org.apache.struts.actions.*; > > import org.apache.struts.action.ActionForm; > > import org.apache.struts.action.ActionMapping; > > > > import javax.servlet.http.HttpServletRequest; > > > > public class OrgIdActionForm extends ActionForm { > > > > private String orgid; > > private String facilid; > > > > public void setOrgId(String orgid) { > > this.orgid = orgid; > > } > > public void setFacilId(String facilid) { > > this.facilid= facilid; > > } > > public String getOrgId() { > > return orgid; > > } > > public String getFacilId() { > > return facilid; > > } > > > > public void reset(ActionMapping mapping, > > HttpServletRequest request) { > > this.orgid= null; > > this.facilid= null; > > } > > > > public ActionErrors validate(ActionMapping > mapping, > > HttpServletRequest request) { > > String errorKey = "OrgIdActionErrors"; > > ActionErrors errors = new ActionErrors(); > > > > // orgid > > if (this.orgid.length() < 4) { > > errors.add(errorKey, new > > > ActionError("error.OrgIdActionForm.orgid.length")); > > errors.add("orgid", new > > ActionError("error.generic")); > > } > > > > > > // facilid > > else if(this.facilid.length() < 6) { > > errors.add(errorKey, new > > > ActionError("error.OrgIdActionForm.facilid.length")); > > errors.add("facilid", new > > ActionError("error.generic")); > > } > > > > return errors; > > } > > } > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! SiteBuilder - Free, easy-to-use web site > design software > > http://sitebuilder.yahoo.com > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > __________________________________ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site > design software > http://sitebuilder.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] >
__________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]