81,122
社区成员




<dwr>
<allow>
<create creator="new" javascript="TestDWR" scope="application">
<param name="class" value="dwr.TestDWR" />
<include method="test1dwr" />
</create>
</allow>
</dwr>
http://127.0.0.1/dwr/$%7BoverridePath%7D$%7BplainCallHandlerUrl%7DTestDWR.test1dwr.dwr
Remote Address:127.0.0.1:80
Request URL:http://127.0.0.1/dwr/$%7BoverridePath%7D$%7BplainCallHandlerUrl%7DTestDWR.test1dwr.dwr
Request Method:POST
Status Code:404 Not Found
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
id="WebApp_ID" version="3.0">
<display-name>dwr</display-name>
<servlet>
<servlet-name>dwr-invoker</servlet-name>
<servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>true</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>dwr-invoker</servlet-name>
<url-pattern>/dwr/*</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
这个是页面
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>here you are</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">
<script type='text/javascript' src='/dwr/util.js'></script>
<script type='text/javascript' src='/dwr/engine.js'></script>
<script type='text/javascript' src='dwr/interface/TestDWR.js'></script>
</head>
<body onload='dwr.util.useLoadingMessage()'>
<script type='text/javascript'>
function callMethod() {
TestDWR.test1dwr();
};
</script>
<input type="button" value="execute" onclick="callMethod();">
</body>
</html>