<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> <%@page import="com.yc.service.user.UserAccountServiceIfc"%> <%@page import="com.yc.service.user.UserAccountServiceImpl"%> <%@page import="java.util.Map"%> <%@page import="org.springframework.web.context.WebApplicationContext"%> <%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%> <% //得到URL String URL = (request.getRequestURL()+"").replace(request.getRequestURI(),"") + request.getContextPath(); %> "> Insert title here <% String usercode=request.getParameter("usercode"); WebApplicationContext wac = WebApplicationContextUtils.getWebApplicationContext(getServletContext()); UserAccountServiceIfc userAccountServiceIfc = (UserAccountServiceIfc)wac.getBean("UserAccountServiceImpl"); Map map = userAccountServiceIfc.getUserInfoByUserCode(usercode); %>
您正在为“<%=map.get("username") %>”授予权限