An error occurred at line: 5 in the jsp file: /frame.jsp
Duplicate local variable ds
--------------------编程问答--------------------
http://blog.csdn.net/hhy62011980/article/details/5690906
--------------------编程问答--------------------
http://blog.csdn.net/hhy62011980/article/details/5690906
--------------------编程问答--------------------
DealString ds = new DealString();ds名字换下,应该是有一个变量名叫ds了。
--------------------编程问答--------------------
An error occurred at line: 5 in the jsp file: /frame.jsp
Duplicate local variable strType
2: <%@page import="kjb.main.DealString"%>
3: <%
4: DealString dss = new DealString();
5: String strType = dss.toString(request.getParameter("txt_type"));
6: String strType1 = dss.toString(request.getParameter("txt_type1"));
7: String strSearch = dss.toString((String)request.getParameter("txt_search"));//新加入
8: if(strType.equals(""))strType = "0";
--------------------编程问答--------------------
第5行
--------------------编程问答--------------------
An error occurred at line: 5 in the jsp file: /frame.jsp
Duplicate local variable strType
一模一样的错误,你修改下
--------------------编程问答--------------------
你这报错的原因是你有两个ds的变量名,重复了。换个应该不会报这个错了。你好好看看
An error occurred at line: 5 in the jsp file: /frame.jsp
Duplicate local variable strType
2: <%@page import="kjb.main.DealString"%>
3: <%
4: DealString dss = new DealString();
5: String strType = dss.toString(request.getParameter("txt_type"));
6: String strType1 = dss.toString(request.getParameter("txt_type1"));
7: String strSearch = dss.toString((String)request.getParameter("txt_search"));//新加入
8: if(strType.equals(""))strType = "0";