I m getting error like
javax.servlet.jsp.JspException: No getter method for property complaintdesc of bean currentComplaint
at org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:1031)
at org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:227)
My DTO obejct is like..
package ssl.phr.patientdemographics.dto;
public class PatientComplaintsDTO
{
//member variable declaration
private int complaintId;
private int patientId;
private
String complaintdesc;
private String complaintsince;
private int painscale;
private String complaintdate;
/**
* @return Returns the complaintdate.
*/
public String getComplaintDate() {
return complaintdate;
}
/**
* @param complaintdate The complaintdate to set.
*/
public void setComplaintDate(String complaintdate) {
this.complaintdate = complaintdate;
}
/**
* @return Returns the patientId.
*/
public int getPatientId() {
return patientId;
}
/**
* @param patientId The patientId to set.
*/
public void setPatientId(int patientId) {
this.patientId = patientId;
}
/**
* @return Returns the complaintId.
*/
public int getComplaintId() {
return complaintId;
}
/**
* @param complaintId The complaintId to set.
*/
public void setComplaintId(int complaintId) {
this.complaintId = complaintId;
}
/**
* @return Returns the complaintdesc.
*/
public String getComplaintDesc() {
return complaintdesc;
}
/**
* @param complaintdesc The complaintdesc to set.
*/
public void setComplaintDesc(String complaintdesc) {
this.complaintdesc = complaintdesc;
}
/**
* @return Returns the complaintsince.
*/
public String getComplaintSince() {
return complaintsince;
}
/**
* @param complaintsince The complaintsince to set.
*/
public void setComplaintSince(String complaintsince) {
this.complaintsince = complaintsince;
}
/**
* @return Returns the painscale.
*/
public int getPainScale() {
return painscale;
}
/**
* @param painscale The painscale to set.
*/
public void setpainScale(int painscale) {
this.painscale = painscale;
}
}
I cant understand the error ,even though names are correct...
help me out...