%@page import="com.fgkj.actions.ActionUtil"%> <%@page import="com.fgkj.dto.User_inf"%> <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; Cookie[] cookies = request.getCookies(); String json = ""; if(cookies != null && cookies.length>0){ for(Cookie c:cookies){ String name = c.getName(); if(name.equals("user")){ json = c.getValue(); break; } } } String uname = ""; String upass = ""; if(json.length() > 0){ Object obj = ActionUtil.DecryptionBase64(json); try{ if(obj !=null && obj.toString().indexOf("UId")>0){ User_inf uinf = ActionUtil.getGson().fromJson(obj.toString(), User_inf.class); uname = uinf.getUName(); upass = uinf.getUSnId(); } }catch(Exception e){ } } %> <%@ taglib uri="/struts-tags" prefix="s" %> <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>