Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

javax.servlet.jsp.JspException: No getter method for property ad of be

Status
Not open for further replies.

gantas

Programmer
Mar 1, 2006
2
0
0
IN
Hi,
i am new to struts...
i have the following in my jsp

<html:checkbox property="ad" value="a" />

follwing in my form bean

private String ad=null;
and also the getters & setters method.


but am geting the follwoing error

javax.servlet.jsp.JspException: No getter method for property ad of bean org.apache.struts.taglib.html.BEAN
 
Are your getter/setters like this :

public void setAd(String ad);
public String getAd();

?

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
my setter & getter are like this

public String getAd() {
return ad;
}
public void setAd(String ad) {
this.ad = ad;
}
 
try to add the name in checkbox with the form bean name

<html:checkbox property="ad" value="a" name"FormBeanName"/>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top