String index out of
range: 1
range: 2
`````````````````信息: Server startup in 15044 ms
服务器启动完成
找到list,list=logService.findAll("condition",page);
logList = list.subList(1,30);
后台输出:
==toSerch()=====list.size()====44
2012-9-10 11:15:55 org.apache.catalina.core.ApplicationDispatcher invoke
严重: Servlet.service() for servlet jsp threw exception
java.lang.StringIndexOutOfBoundsException: String index out of range: 1
at java.lang.String.substring(String.java:1935)
at com.opensymphony.xwork2.ognl.OgnlValueStack.findAvailableProperties(OgnlValueStack.java:365)
at com.opensymphony.xwork2.ognl.OgnlValueStack.checkForInvalidProperties(OgnlValueStack.java:325)
at com.opensymphony.xwork2.ognl.OgnlValueStack.findValue(OgnlValueStack.java:284)
at org.apache.struts2.components.Property.start(Property.java:141)
at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:53)
at org.apache.jsp.jsp.smsLog.serchout_jsp._jspx_meth_s_005fproperty_005f7(serchout_jsp.java:724)
at org.apache.jsp.jsp.smsLog.serchout_jsp._jspService(serchout_jsp.java:170)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
严重: Servlet.service() for servlet jsp threw exception
java.lang.StringIndexOutOfBoundsException: String index out of range: 1
at java.lang.String.substring(String.java:1935)
at com.opensymphony.xwork2.ognl.OgnlValueStack.find
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: java.lang.StringIndexOutOfBoundsException: String index out of range: 1 org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:491) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:419) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
上图是出错的列表,下图是正常的页面!