Files
yacos/YACOSWeb/WebContent/WEB-INF/yacos-servlet.xml
Frederic Debuire d63ab989b7
2007-12-14 13:15:15 +00:00

43 lines
1.8 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jee="http://www.springframework.org/schema/jee"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/jee
http://www.springframework.org/schema/jee/spring-jee-2.5.xsd">
<!-- the application context definition for the SiteWebSpring DispatcherServlet -->
<bean name="/main.htm" class="org.yacos.web.author.controller.MainController" />
<bean name="/submissionArticleOK.htm" class="org.yacos.web.author.controller.SArticleControllerOK" />
<bean name="/submissionArticle.htm" class="org.yacos.web.author.controller.SArticleController">
<property name="sessionForm" value="true" />
<property name="commandName" value="submissionArticle" />
<property name="commandClass" value="org.yacos.web.author.form.FormSubmission" />
<property name="formView" value="submissionArticle" />
<property name="successView" value="submissionArticleOK.htm" />
<property name="articleManager" ref="articleManager" />
</bean>
<bean id="viewResolver"
class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="viewClass"
value="org.springframework.web.servlet.view.JstlView">
</property>
<property name="prefix" value="/WEB-INF/jsp/"></property>
<property name="suffix" value=".jsp"></property>
</bean>
<bean id="messageSource"
class="org.springframework.context.support.ResourceBundleMessageSource">
<property name="basename" value="messages" />
</bean>
<jee:jndi-lookup id="articleManager" jndi-name="ArticleManagerBean/remote"
cache="true" />
</beans>