# uriworkermap.properties - iis
#
# this file provides sample mappings for example wlb
# worker defined in workermap.properties.minimal
# the general syntax for this file is:
# [url]=[worker name]
/admin/*=wlb
/manager/*=wlb
/jsp-examples/*=wlb
/servlets-examples/*=wlb
# optionally filter out all .jpeg files inside that context
# for no mapping the url has to start with exclamation (!)
!/servlets-examples/*.jpeg=wlb
#
# mount jkstatus to /jkmanager
# for production servers you will need to
# secure the access to the /jkmanager url
#
/jkmanager=jkstatus
/0431la/*=wlb
# uriworkermap.properties - iis
#
# this file provides sample mappings for example wlb
# worker defined in workermap.properties.minimal
# the general syntax for this file is:
# [url]=[worker name]
/admin/*=wlb
/manager/*=wlb
/jsp-examples/*=wlb
/servlets-examples/*=wlb
# optionally filter out all .jpeg files inside that context
# for no mapping the url has to start with exclamation (!)
!/servlets-examples/*.jpeg=wlb
#
# mount jkstatus to /jkmanager
# for production servers you will need to
# secure the access to the /jkmanager url
#
/jkmanager=jkstatus
/0431la/*=wlb
/*.jsp=wlb
让jsp请求交由tomcat处理
呵呵
重启iis 和 tomcat 看看我们的成果
我们可以考但jsp请求完全正常解析了。
复制代码 代码如下:
<%@ page language="java" import="java.util.*" pageencoding="iso-8859-1"%>
<%
string path = request.getcontextpath();
string basepath = request.getscheme()+"://"+request.getservername()+":"+request.getserverport()+path+"/";
%>
<!doctype html public "-//w3c//dtd html 4.01 transitional//en">
<html>
<head>
<base href="<%=basepath%>" rel="external nofollow" >
<title>my jsp 'index.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css" rel="external nofollow" >
-->
</head>
<body>
this is my jsp page. <br>
</body>
</html>