日期:2014-05-17  浏览次数:20656 次

是类型错了,还是依赖的包没有导进去
<%@ page language="java" contentType="text/html;charset=utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@page import="com.sihuatech.util.CookieTool"%>
<%
String pathStr = request.getContextPath();
String url = request.getParameter("origUrl");
//获取cookie 陈云杰 2011-9-2
Cookie cookies[] = request.getCookies();
String checked = "";
if(cookies != null) {
for(int i=0;i<cookies.length;i++) {
if("uid".equalsIgnoreCase(cookies[i].getName())) {
String uid = CookieTool.decodeName(cookies[i].getValue());
request.setAttribute("uid", uid);
checked = "checked";
break;
}
}
}
%>


------解决方案--------------------
这让人怎么说。。。。

没有说错误提示,没有指出哪段代码错误。。。。我想说:围观。。。
------解决方案--------------------
无法直视JSP里大段大段的代码。
------解决方案--------------------
什么错误啊?
------解决方案--------------------
描叙清楚问题也是一个能力
------解决方案--------------------
说清楚什么问题啊,这代码也看不出来个什么
------解决方案--------------------
...简直无法直视..
------解决方案--------------------
貌似库没有导入。