开发Spring MVC应用程序(3-3)
来源:互联网 发布:手机号收集软件 编辑:程序博客网 时间:2024/06/05 15:50
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
<!--
- Application context definition for "springapp" DispatcherServlet.
-->
<beans>
<!-- Controller for the initial "Hello" page -->
<bean id="springappController" class="web.SpringappController">
<property name="productManager">
<ref bean="prodMan"/>
</property>
</bean>
<!-- Validator and Form Controller for the "Price Increase" page -->
<bean id="priceIncreaseValidator" class="bus.PriceIncreaseValidator"/>
<bean id="priceIncreaseForm" class="web.PriceIncreaseFormController">
<property name="sessionForm"><value>true</value></property>
<property name="commandName"><value>priceIncrease</value></property>
<property name="commandClass"><value>bus.PriceIncrease</value></property>
<property name="validator"><ref bean="priceIncreaseValidator"/></property>
<property name="formView"><value>priceincrease</value></property>
<property name="successView"><value>hello.htm</value></property>
<property name="productManager">
<ref bean="prodMan"/>
</property>
</bean>
<bean id="prodMan" class="bus.ProductManager">
<property name="products">
<list>
<ref bean="product1"/>
<ref bean="product2"/>
<ref bean="product3"/>
</list>
</property>
</bean>
<bean id="product1" class="bus.Product">
<property name="description"><value>Lamp</value></property>
<property name="price"><value>5.75</value></property>
</bean>
<bean id="product2" class="bus.Product">
<property name="description"><value>Table</value></property>
<property name="price"><value>75.25</value></property>
</bean>
<bean id="product3" class="bus.Product">
<property name="description"><value>Chair</value></property>
<property name="price"><value>22.79</value></property>
</bean>
<bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
<property name="basename"><value>messages</value></property>
</bean>
<bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="mappings">
<props>
<prop key="/hello.htm">springappController</prop>
<prop key="/priceincrease.htm">priceIncreaseForm</prop>
</props>
</property>
</bean>
<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="viewClass">
<value>org.springframework.web.servlet.view.JstlView</value>
</property>
<property name="prefix"><value>/WEB-INF/jsp/</value></property>
<property name="suffix"><value>.jsp</value></property>
</bean>
</beans>
- 开发Spring MVC应用程序(3-3)
- 开发Spring MVC应用程序(3-1)
- 开发Spring MVC应用程序(3-2)
- 开发Spring MVC应用程序(1)
- 开发Spring MVC应用程序(2)
- 用 Spring MVC 轻松进行应用程序开发
- 用 Spring MVC 轻松进行应用程序开发
- 用 Spring MVC 轻松进行应用程序开发
- spring-richclient开发swing应用程序 3
- spring-richclient开发swing应用程序 3
- spring-richclient开发swing应用程序 3
- spring-richclient开发swing应用程序 3
- spring-richclient开发swing应用程序 3
- spring-richclient开发swing应用程序 3
- spring-richclient开发swing应用程序 3
- spring-richclient开发swing应用程序 3
- 用 Spring MVC 轻松进行应用程序开发(图)
- spring MVC之开发简单的web应用程序(一)
- 开发Spring MVC应用程序(2)
- 开发Spring MVC应用程序(3-1)
- 《经济观察报》金蝶:共生能力
- 开发Spring MVC应用程序(3-2)
- 筛法的应用
- 开发Spring MVC应用程序(3-3)
- 音序检索汉字之我见
- “英文简历常用词汇”大全(精)
- 如何关闭一个view
- 如何用C#做一个类似于桌面插件的程序
- Tomcat5 配置Servlet
- ASP.NET中如何调用存储过程
- JDBC学习笔记-----jdbc性能优化
- We Did It!