ExceptoionWith: javax.servlet.jsp.JspException: No getter method a

 

现象:root cause

javax.servlet.jsp.JspException: No getter method available for property projects for bean under name org.apache.struts.taglib.html.BEAN
	org.apache.struts.taglib.html.MultiboxTag.doEndTag(MultiboxTag.java:247)
	org.apache.jsp.pages.project.exportProjectCases_jsp._jspx_meth_html_multibox_0(exportProjectCases_jsp.java:424)
	org.apache.jsp.pages.project.exportProjectCases_jsp._jspService(exportProjectCases_jsp.java:242)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:285)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:232)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
	org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
	org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
	org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
	org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
	org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
	org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
	filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:147)
最后的原因:
1、页面中定义的提交form后的Action中的转向不对,导致无法找到正确的formbean <html:form action="/user/modifyRightsAction.do">

 

你可能感兴趣的:(java,apache,jsp,struts,servlet)