开发者

Why am I getting this JspException?

开发者 https://www.devze.com 2023-01-27 07:40 出处:网络
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.开发者_开发百

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消