dwr+spring Classes known to DWR中什么都没有

代码如下,请大家指点一下

dwr.xml
[code="java"]
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE dwr PUBLIC "-//GetAhead Limited//DTD Direct Web Remoting 1.0//EN" "http://www.getahead.ltd.uk/dwr/dwr10.dtd">








[/code]

web.xml
[code="java"]


dwr-invoker

uk.ltd.getahead.dwr.DWRServlet



debug

true





classes

java.lang.Object





logLevel

INFO







dwr-invoker

/dwr/*

  <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>classpath*:applicationContext-*.xml</param-value>
  </context-param>


<listener>
    <listener-class>
        org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>

[/code]

applicationContext.xml
[code="java"]
<?xml version="1.0" encoding="UTF-8"?>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">

    <bean id="Hello" class="com.zscqj.common.Hello">
    </bean>
</beans>

[/code]

jsp
[code="java"]







<br><br> function tijiao()<br> { <br> var info=document.all[&quot;infor&quot;].value;<br> alert(info);<br> Hello.say(info,callback);<br> }<br> function callback(data)<br> {<br> document.all[&quot;con&quot;].innerHTML=data;<br> }<br>






提交后返回的内容如下:



1个回答

你试试在下加试试~

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!