String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort();
String remoteuser = request.getRemoteUser();
String url = basePath +"/xxxSystem/welcome_desk.jsp?remoteuser="+remoteuser;
response.sendRedirect(url);
%>
---------------------------------------------------------------------------------------------
web.xml
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
index.jsp
NtlmHttpFilter
jcifs.http.NtlmHttpFilter
jcifs.http.domainController
10.1***
jcifs.smb.lmCompatibility
0
jcifs.smb.client.useExtenededSecurity
false
jcifs.smb.client.soTimeout
35000
NtlmHttpFilter
/*
---------------------------------------------------------------------------------------------
请先下载 jcifs-1.3.15.jar
須隔开project,否则会有问题。