Thanks a lot for your answer.


There could be several poteintal problems.

1) make sure the JSP does not have the session=false page directive set.

It doesn't.

2) Make sure you are referencing the form using the same name as you have it defined in the struts config (remember capitalization does count).

I've checked that and than again, the right bean gets filled with the
right parameters from the request, so I think the problem isn't the
configuration. The problem arises on the following pages, where I need
the data to, but the bean gets instantiated with every new page again. The following lines are from my struts-config.xml:

    <form-bean      name="wizardForm"
                    type="com.cp.pub.WizardForm"/>
        :
        :
 <action-mappings>
   <action  path="/Funds"
            type="com.cp.pub.DefineContentFundsAction"
            name="wizardForm"
            scope="session">
        </action>
        :
        :

3) Make sure you are accessing the form from within the html:form tag and that the struts action specified in the form action has the expected form as the type in the struts config.


I don't use html:form-tags. Could that be a problem?


        


Hi to all,

I use a formbean within session-scope (declared in
struts-config.xml). However it behaves like it would
be within request-scope. Every new page it gets
instantiated again. I checked the sessionid and
it is every page the same, so I guess am within the
same http-session.

Does anyone have some ideas what the reason may be?

Every hint is highly appreciated.



--

Regards
Martin



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

Reply via email to