Hi Tom,

You're getting this error:

org.apache.jasper.JasperException: Cannot find any information on property
'ChainName' in a bean of type 'com.bean.chain.FormBean'

because the FormBean isn't strictly following the JavaBeans notation.

The jsp:useBean, jsp:getProperty and jsp:setProperty tags locate and
use the JavaBean through introspection and the introspection process
requires a JavaBean to be a JavaBean. An error like the above occurs
when a Java Class isn't a  proper JavaBean.

In order to make FormBean a follow the JavaBean notation (and
generally Java naming convention), the property names should be in
camelCase and should not begin with an upper case letter. So make the
following changes in the FormBean:

private String chainName;
private String address1;
private String address2;
private String city;
private String state;
private String zipCode;
private String phoneNumber;

Also change the above property names referenced in the getters and
setters of the bean and also in the corresponding jsp:getProperty.

Re-compile the bean , and re-load the JSP page , you should no longer
get the error message.

-Rashmi

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to