Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Interface21 added support for session scoped beans in Spring 2.0. Since the jars are backwards compatible simply build spring (Sprng 2.0 M1 should be out by the time you read this.) and use the aop:scope parameters to scope your beans. I've put You can find a modified applicationContext.xml for the shopping cart example below.

Code Block
xml
xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">

    <bean id="catalog"
          singleton="true"
          class="com.opensymphony.webwork.example.ajax.catalog.TestCatalog" />

    <bean id="shoppingCart"
          singleton="true"
          class="com.opensymphony.webwork.example.ajax.cart.DefaultCart" />


</beans>

XWork/WebWork specific solutions

...