资源简介

演示DEMO 博文链接:https://xiaoa7.iteye.com/blog/312295

资源截图

代码片段和文件信息

package org.p3p.net;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class SSOSpringboardServlet extends HttpServlet {

public void doGet(HttpServletRequest request HttpServletResponse response)
throws ServletException IOException {
request.setCharacterEncoding(“gbk“);
String code = request.getParameter(“systemcode“);
if (code.equals(“servera“))
response
.sendRedirect(“http://192.168.3.27:8080/servera/login.jsp?requesturl=“
+ request.getRequestURL()
+ “?“
+ request.getQueryString());
else if (code.equals(“serverb“)) {
response
.sendRedirect(“http://192.168.3.

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        340  2009-01-08 08:30  serverb\.classpath

     文件        294  2009-01-08 08:30  serverb\.mymetadata

     文件       1225  2009-01-08 08:35  serverb\.project

     文件        427  2009-01-08 08:59  serverb\WebRoot\index.jsp

     文件        468  2009-01-08 10:00  serverb\WebRoot\login.jsp

     文件         39  2009-01-08 08:30  serverb\WebRoot\meta-INF\MANIFEST.MF

     文件        286  2009-01-08 08:30  serverb\WebRoot\WEB-INF\web.xml

     文件        340  2009-01-08 08:29  sso\.classpath

     文件        282  2009-01-08 08:29  sso\.mymetadata

     文件       1221  2009-01-08 08:35  sso\.project

     文件        937  2009-01-08 10:29  sso\src\org\p3p\net\SSOSpringboardServlet.java

     文件       1546  2009-01-08 10:28  sso\WebRoot\index.jsp

     文件         39  2009-01-08 08:29  sso\WebRoot\meta-INF\MANIFEST.MF

     文件       1709  2009-01-08 10:29  sso\WebRoot\WEB-INF\classes\org\p3p\net\SSOSpringboardServlet.class

     文件        745  2009-01-08 08:44  sso\WebRoot\WEB-INF\web.xml

     文件        340  2009-01-08 08:30  servera\.classpath

     文件        294  2009-01-08 08:30  servera\.mymetadata

     文件       1225  2009-01-08 08:35  servera\.project

     文件        437  2009-01-08 09:32  servera\WebRoot\index.jsp

     文件        468  2009-01-08 10:00  servera\WebRoot\login.jsp

     文件         39  2009-01-08 08:30  servera\WebRoot\meta-INF\MANIFEST.MF

     文件        286  2009-01-08 08:30  servera\WebRoot\WEB-INF\web.xml

     目录          0  2009-01-08 09:15  sso\WebRoot\WEB-INF\classes\org\p3p\net

     目录          0  2009-01-08 09:15  sso\WebRoot\WEB-INF\classes\org\p3p

     目录          0  2009-01-08 08:44  sso\src\org\p3p\net

     目录          0  2009-01-08 09:15  sso\WebRoot\WEB-INF\classes\org

     目录          0  2009-01-08 08:30  serverb\WebRoot\WEB-INF\classes

     目录          0  2009-01-08 08:30  serverb\WebRoot\WEB-INF\lib

     目录          0  2009-01-08 08:44  sso\src\org\p3p

     目录          0  2009-01-08 09:15  sso\WebRoot\WEB-INF\classes

............此处省略25个文件信息

评论

共有 条评论