ssh + dwr 整合, 无法进入dwr调试页面。
帮帮忙啊, 自己找了一上午了, 确实木有办法咧。
HTTP Status 404 - There is no Action mapped for namespace / and action name dwr.
web.xml配置
<!-- dwr配置-->
<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>
--------------------编程问答-------------------- applicationContext.xml配置
<!-- 数据访问Bean配置 -->
<bean id="subTypeDaoImpl" class="com.sctg.oa.dao.impl.SubTypeDaoImpl">
<property name="sessionFactory" ref="sessionFactory" />
</bean>
<!-- 业务逻辑Bean配置 -->
<bean id="subTypeBizImpl" class="com.sctg.oa.biz.impl.SubTypeBizImpl">
<property name="subTypeDao" ref="subTypeDaoImpl" />
</bean>
<!-- Action配置 -->
<bean id="subTypeAction" class="com.sctg.oa.web.action.SubTypeAction">
<property name="subTypeBiz" ref="subTypeBizImpl" />
</bean> --------------------编程问答-------------------- dwr.xml配置
<dwr>
<allow>
<create creator="spring" javascript="getSubType">
<param name="beanName" value="subTypeBizImpl" />
<include method="getSubTypes" />
</create>
<convert converter="baen" match="com.sctg.oa.bean.SubType">
<param name="include" value="id,type" />
</convert>
</allow>
</dwr>
--------------------编程问答--------------------
访问DWR调试页面 http://localhost:8080/sctg_OA/dwr
报404,没找到Action 。
HTTP Status 404 - There is no Action mapped for namespace / and action name dwr.
帮忙看看! 感激不尽 --------------------编程问答-------------------- <convert converter="baen" match="com.sctg.oa.bean.SubType">
好像写错了吧,应该是
<convert converter="bean" match="com.sctg.oa.bean.SubType">
补充:Java , Web 开发