User ceff79a960
05-05-2008 10:17:15
all works except modification , the error infomation is:
exception
org.apache.jasper.JasperException: An exception occurred processing JSP page /marvin/c/update.jsp at line 100
97: int start = field.indexOf("<");
98: int end = field.indexOf(">");
99: int def = field.indexOf("#");
100: String pre = field.substring(0, start);
101: String fieldName =field.substring(start + 1, end).toLowerCase();
102: String post = field.substring(end + 1);
103: String defaultv = "";
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
java.lang.String.substring(String.java:1768)
org.apache.jsp.marvin.c.update_jsp._jspService(update_jsp.java:232)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
can anyone help me ? thank you !!!!!!
exception
org.apache.jasper.JasperException: An exception occurred processing JSP page /marvin/c/update.jsp at line 100
97: int start = field.indexOf("<");
98: int end = field.indexOf(">");
99: int def = field.indexOf("#");
100: String pre = field.substring(0, start);
101: String fieldName =field.substring(start + 1, end).toLowerCase();
102: String post = field.substring(end + 1);
103: String defaultv = "";
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
java.lang.String.substring(String.java:1768)
org.apache.jsp.marvin.c.update_jsp._jspService(update_jsp.java:232)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
can anyone help me ? thank you !!!!!!