Why am I getting this JspException?
Can anyone explain this exception and its cause:
javax.servlet.jsp.JspException: No getter method for property: "loanInfoSearch_dto.branchCode" of bean: "org.apache.struts.validator.开发者_开发百科DynaValidatorActionForm"
Just a guess, but if you've got a class named LoanInfoSearch_dto
and you've got an instance of it named loanInfoSearch_dto
, and it has a private variable named branchCode
, then you're missing a method named
public T getBranchCode() {
return branchCode;
}
where T
is branchCode
's type. From its name, I'd assume its an int
or some other numeric type.
精彩评论