是类型错了,还是依赖的包没有导进去
老麻麻 2014-03-19 05:31:34 <%@ 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;
}
}
}
%>