Début d'ajout DWR

This commit is contained in:
Frederic Debuire
2008-01-23 16:28:17 +00:00
parent 60a35c7c9f
commit 9e7b8c045e
5 changed files with 77 additions and 33 deletions

Binary file not shown.

View File

@@ -1,44 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?> <?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">
<web-app version="2.4" <servlet>
xmlns="http://java.sun.com/xml/ns/j2ee" <servlet-name>yacos</servlet-name>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <servlet-class>
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee org.springframework.web.servlet.DispatcherServlet
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" > </servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet> <servlet-mapping>
<servlet-name>yacos</servlet-name> <servlet-name>yacos</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <url-pattern>*.htm</url-pattern>
<load-on-startup>1</load-on-startup> </servlet-mapping>
</servlet>
<servlet-mapping> <welcome-file-list>
<servlet-name>yacos</servlet-name> <welcome-file>index.jsp</welcome-file>
<url-pattern>*.htm</url-pattern> </welcome-file-list>
</servlet-mapping>
<welcome-file-list> <jsp-config>
<welcome-file> <taglib>
index.jsp <taglib-uri>/spring</taglib-uri>
</welcome-file> <taglib-location>
</welcome-file-list> /WEB-INF/tld/spring-form.tld
</taglib-location>
<jsp-config> </taglib>
<taglib> </jsp-config>
<taglib-uri>/spring</taglib-uri>
<taglib-location>/WEB-INF/tld/spring-form.tld</taglib-location> <!-- Servlet for DWR mapping -->
</taglib> <!-- <servlet-mapping>
</jsp-config> <servlet-name>yacos</servlet-name>
<url-pattern>/dwr/*</url-pattern>
<!-- SiteMesh Integration declaration --> </servlet-mapping> -->
<!-- SiteMesh Integration declaration Start -->
<filter> <filter>
<filter-name>sitemesh</filter-name> <filter-name>sitemesh</filter-name>
<filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class> <filter-class>
com.opensymphony.module.sitemesh.filter.PageFilter
</filter-class>
</filter> </filter>
<filter-mapping> <filter-mapping>
<filter-name>sitemesh</filter-name> <filter-name>sitemesh</filter-name>
<url-pattern>/*</url-pattern> <url-pattern>/*</url-pattern>
</filter-mapping> </filter-mapping>
<!-- SiteMesh Integration declaration End -->
</web-app> </web-app>

View File

@@ -3,6 +3,7 @@
<beans xmlns="http://www.springframework.org/schema/beans" <beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:flow="http://www.springframework.org/schema/webflow-config" xmlns:flow="http://www.springframework.org/schema/webflow-config"
xmlns:dwr="http://www.directwebremoting.org/schema/spring-dwr"
xmlns:jee="http://www.springframework.org/schema/jee" xmlns:jee="http://www.springframework.org/schema/jee"
xmlns:lang="http://www.springframework.org/schema/lang" xmlns:lang="http://www.springframework.org/schema/lang"
xmlns:util="http://www.springframework.org/schema/util" xmlns:util="http://www.springframework.org/schema/util"
@@ -10,7 +11,8 @@
http://www.springframework.org/schema/webflow-config http://www.springframework.org/schema/webflow-config/spring-webflow-config-1.0.xsd http://www.springframework.org/schema/webflow-config http://www.springframework.org/schema/webflow-config/spring-webflow-config-1.0.xsd
http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.0.xsd http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.0.xsd
http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-2.0.xsd http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-2.0.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd"> http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd
http://www.directwebremoting.org/schema/spring-dwr http://www.directwebremoting.org/schema/spring-dwr-2.0.xsd">
<!-- the application context definition for the SiteWebSpring DispatcherServlet --> <!-- the application context definition for the SiteWebSpring DispatcherServlet -->
@@ -70,6 +72,7 @@
</bean> </bean>
<bean name="/addConference4.htm" class="org.yacos.web.chairman.controller.AddConferenceController"> <bean name="/addConference4.htm" class="org.yacos.web.chairman.controller.AddConferenceController">
<dwr:remote javascript="AddCriteriaJS" />
<property name="sessionForm" value="true" /> <property name="sessionForm" value="true" />
<property name="commandName" value="formConference" /> <property name="commandName" value="formConference" />
<property name="commandClass" value="org.yacos.web.chairman.form.FormConference" /> <property name="commandClass" value="org.yacos.web.chairman.form.FormConference" />
@@ -121,6 +124,37 @@
<!-- Get chosen conference in session context --> <!-- Get chosen conference in session context -->
<bean name="/chooseConference.htm" class="org.yacos.web.system.controller.ChooseConferenceController"> <bean name="/chooseConference.htm" class="org.yacos.web.system.controller.ChooseConferenceController">
</bean> </bean>
<!-- <bean id="dwrUrlMapping"
class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="alwaysUseFullPath" value="true" />
<property name="mappings">
<props>
<prop key="/dwr/**/*">dwrController</prop>
</props>
</property>
</bean>
<dwr:controller id="dwrController" debug="true"></dwr:controller>
<dwr:configuration>
<dwr:convert type="bean"
class="org.yacos.web.chairman.form.FormConference">
</dwr:convert>-->
<!-- <dwr:convert type="bean"
class="iConfWeb.bean.viewPaper.DetailPaper">
</dwr:convert>
<dwr:convert type="bean"
class="iConfWeb.bean.assignation.PcMemberBean">
</dwr:convert>
<dwr:convert type="bean"
class="iConfWeb.bean.assignation.Assignations">
</dwr:convert> -->
<!--<dwr:convert type="bean" class="java.lang.StackTraceElement"></dwr:convert>
<dwr:convert type="exception" class="java.lang.exception"></dwr:convert>
</dwr:configuration> -->
<!-- View Resolver --> <!-- View Resolver -->