<%@ page session="true"%> <%@ page pageEncoding="UTF-8"%> <%@ page contentType="text/html; charset=UTF-8"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> <%@ page import="org.springframework.webflow.execution.RequestContext"%> <%@ page import="org.apache.commons.lang.StringUtils"%> <%@ page import="com.jsjty.sso.util.DesPasswordEncoder"%> <% String userName = ""; String passKey = ""; //System.out.println("autoSubmit:"+request.getSession().getAttribute("autoSubmit")); // if(request.getSession().getAttribute("autoSubmit")==null){ if (request.getAttribute("service") != null) { String service = request.getAttribute("service").toString(); if (service.indexOf("userName") != -1 && service.indexOf("passKey") != -1) { int m = service.indexOf("userName"); int n = service.indexOf("&", m + 9); int j = service.indexOf("passKey"); userName = service.substring(m + 9, n); passKey = service.substring(j + 8); passKey = DesPasswordEncoder.decrypt(passKey, ""); userName = StringUtils.isEmpty(userName) ? "" : userName; passKey = StringUtils.isEmpty(passKey) ? "" : passKey; } else { userName = ""; passKey = ""; } } %> 统一认证登录

用户名:

密   码: