Here is the pertinent spring applicationContext.xml configuration
information:
        <!-- ========================= ACTION DEFINITIONS
============================== -->
        <bean id="productAction"
class="com.centricgroup.sales.action.ProductAction">
                <property name="productDelegate" ref="productDelegate" />
        </bean>
        <!-- ================== BUSINESS DELEGATE DEFINITIONS ================= 
-->
        <bean id="productDelegate" parent="baseTransactionProxy">
                <property name="target">
                        <bean 
class="com.centricgroup.sales.delegate.impl.ProductDelegateImpl">
                                <property name="productSP">
                                        <ref bean="productSP" />
                                </property>
                        </bean>
                </property>
        </bean>

Here is the pertinent struts.xml information:
    <!-- Actions in this package will be prefixed with /protected/ -->
    <package name="protected" extends="struts-default"
namespace="/protected">

        <action name="productSelection" method="select"
                        class="com.centricgroup.sales.action.ProductAction">
                <result name="success">/protected/productLevel1.jsp</result>
                <result name="input">/protected/product.jsp</result>
        </action>

                
   </package>

Here is the code where the problem occurs:
                                        sessHelper.logContainers("getProducts() 
before");
                                        prodContainer = 
productSP.getProductContainer2( pc );
                                        sessHelper.logContainers("getProducts() 
after");

I uploaded the SessionHelper class to show how the logging, set of the
object in session, and get of the object from the session is being done.
http://www.nabble.com/file/p20308746/SessionHelper.java SessionHelper.java 

Here is an example of the applicable log statements:
2008-11-03 12:48:18,194 DEBUG [com.centricgroup.sales.util.SessionHelper]
getProducts() before: their are 1 containers stored in the  session. The
first container has 37 rows
2008-11-03 12:48:20,428 DEBUG [com.centricgroup.sales.sp.impl.ProductSPImpl]
25 product results returned
2008-11-03 12:48:20,459 DEBUG [com.centricgroup.sales.util.SessionHelper]
getProducts() after: their are 1 containers stored in the  session. The
first container has 25 rows

What appears to be happening is that the List of ProductContainers stored in
the session is getting the first element in the list overlaid by the current
instance of the ProductContainer when the following statement is being
executed.
prodContainer = productSP.getProductContainer2( pc )

quite bizarre behavior?


-- 
View this message in context: 
http://www.nabble.com/framework-manipulating-objects-in-the-session--tp20274268s2369p20308746.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to