Servlet.service() for servlet action threw exception
javax.servlet.jsp.JspException: No getter method available for property group for bean under name 体育类
at org.apache.struts.taglib.html.OptionsCollectionTag.doStartTag(OptionsCollectionTag.java:212)
at org.apache.jsp.pages.vap.productList_jsp._jspx_meth_html_005foptionsCollection_005f0(productList_jsp.java:306)
at org.apache.jsp.pages.vap.productList_jsp._jspx_meth_html_005fselect_005f0(productList_jsp.java:270)
at org.apache.jsp.pages.vap.productList_jsp._jspService(productList_jsp.java:129)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)jsp代码:
<html:select property="group" >
<option selected="selected" value=''>--请选择--
</option>
<html:optionsCollection name="vapInfoForm" property="groupsList" label="group" value="group"/>
</html:select>
对应的Form代码:
public class VapInfoForm extends BaseForm {
public List <String> groupsList;
public String keyword;
public String group;
public List<String> getGroupsList() {
return groupsList;
}
public void setGroupsList(List<String> groupsList) {
this.groupsList = groupsList;
}
public String getKeyword() {
return keyword;
}
public void setKeyword(String keyword) {
this.keyword = keyword;
}
public String getGroup() {
return group;
}
public void setGroup(String group) {
this.group = group;
}
}
有谁知道么???谢谢!!
javax.servlet.jsp.JspException: No getter method available for property group for bean under name 体育类
at org.apache.struts.taglib.html.OptionsCollectionTag.doStartTag(OptionsCollectionTag.java:212)
at org.apache.jsp.pages.vap.productList_jsp._jspx_meth_html_005foptionsCollection_005f0(productList_jsp.java:306)
at org.apache.jsp.pages.vap.productList_jsp._jspx_meth_html_005fselect_005f0(productList_jsp.java:270)
at org.apache.jsp.pages.vap.productList_jsp._jspService(productList_jsp.java:129)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)jsp代码:
<html:select property="group" >
<option selected="selected" value=''>--请选择--
</option>
<html:optionsCollection name="vapInfoForm" property="groupsList" label="group" value="group"/>
</html:select>
对应的Form代码:
public class VapInfoForm extends BaseForm {
public List <String> groupsList;
public String keyword;
public String group;
public List<String> getGroupsList() {
return groupsList;
}
public void setGroupsList(List<String> groupsList) {
this.groupsList = groupsList;
}
public String getKeyword() {
return keyword;
}
public void setKeyword(String keyword) {
this.keyword = keyword;
}
public String getGroup() {
return group;
}
public void setGroup(String group) {
this.group = group;
}
}
有谁知道么???谢谢!!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货