Brad Balmer wrote:
I am using the 1.2.4 release and am finding that when I submit a form to aBrad, This is probably happening in the action class itself. Check for the session.invalidate or something similar. Just a thought.
plain Action, a new HttpSession is automatically created and replacing the
session that I already am using.
I have a simple search form where when the form is initially brought up, the reset() function gets called and I see from my debug output: 10:47:05,645 INFO [STDOUT] SearchForm.reset() 10:47:05,645 INFO [STDOUT] ***** sessionBean 10:47:05,645 INFO [STDOUT] ***** org.apache.struts.action.LOCALE
Showing that my sessionBean is in the session. Once I complete the form and submit it, my debug log shows that a new session is created BEFORE the form is even validated (using a listener I wrote):
10:47:14,603 ERROR [MySessionListener] sessionCreated: 2005-01-28 10:47:14,603 ERROR [MySessionListener] attributeAdded: org.apache.struts.action.LOCALE 10:47:14,604 INFO [RequestProcessor] ***** org.apache.struts.action.LOCALE 10:47:14,604 INFO [STDOUT] SearchForm.reset() 10:47:14,604 INFO [STDOUT] ***** org.apache.struts.action.LOCALE 10:47:14,605 INFO [STDOUT] SearchForm.validate() 10:47:14,605 INFO [STDOUT] ***** org.apache.struts.action.LOCALE
Here is my config: <action path="/search" name="searchForm" scope="request" input="/jsp/search.jsp" validate="true" type="app.featuredbrands.action.SearchAction"> <forward name="multiple" path="/jsp/searchResults.jsp"/> <forward name="single" path="/jsp/crud.jsp"/> <forward name="failure" path="/jsp/search.jsp"/> </action>
Any ideas?
Thanks.
Brandon
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]