DWR的问题,为什么我在编译JAVA文件后,html页面中js的方法没有改变?救命啊!!!
好像是没有同步一样,重启tomcat才行?这是个什么问题,大家都说说看
我的dwr.xml
<?xml version= "1.0 " encoding= "UTF-8 "?>
<!DOCTYPE dwr PUBLIC
"-//GetAhead Limited//DTD Direct Web Remoting 2.0//EN "
"http://getahead.org/dwr/dwr20.dtd ">
<dwr>
<allow>
<create creator= "new " javascript= "Demo ">
<param name= "class " value= "vdo.dwr.Demo "/>
</create>
<create creator= "new " javascript= "CheckUserLogin ">
<param name= "class " value= "vdo.dwr.CheckUserLogin "/>
</create>
</allow>
</dwr>
我的web.xml文件
<?xml version= "1.0 " encoding= "UTF-8 "?>
<web-app version= "2.4 "
xmlns= "http://java.sun.com/xml/ns/j2ee "
xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance "
xsi:schemaLocation= "http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd ">
<resource-ref>
<description> DB Connection </description>
<res-ref-name> jdbc/connPool </res-ref-name>
<res-type> javax.sql.DataSource </res-type>
<res-auth> Container </res-auth>
</resource-ref>
<servlet>
<servlet-name> dwr-invoker </servlet-name>
<servlet-class> uk.ltd.getahead.dwr.DWRServlet </servlet-class>
</servlet>
<servlet-mapping>
<servlet-name> dwr-invoker </servlet-name>
<url-pattern> /dwr/* </url-pattern>
</servlet-mapping>
</web-app>
------解决方案--------------------不用重启tomcat的,把缓存或临时文件清除一下就可以了
------解决方案--------------------重新启动TOMCAT就可以了