Re: [struts] help with execAndWait
Mazhar, Osman (Home Office) wrote: I turned debug level logging for struts and xwork packages. I see that the ParametersInterceptor is being called indeed for both scenarios (with or without execAndWait) However, one interesting thing is when I comment out the "delay" and "delaySleepInterval" params from the execAndWait interceptor, I don't get this problem. Maybe this problem has to do with timing? Not sure but this is weird... If you set those parameters in a stack definition, and then refer to that stack in the action, what happens? -Dale - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [struts] help with execAndWait
I turned debug level logging for struts and xwork packages. I see that the ParametersInterceptor is being called indeed for both scenarios (with or without execAndWait) However, one interesting thing is when I comment out the "delay" and "delaySleepInterval" params from the execAndWait interceptor, I don't get this problem. Maybe this problem has to do with timing? Not sure but this is weird... -Original Message- From: Dale Newfield [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 29, 2008 3:21 PM To: Struts Users Mailing List Subject: Re: [struts] help with execAndWait Mazhar, Osman (Home Office) wrote: > That is an interesting point. The bean is a hibernate object, however, I > am not retrieving it from the database, but rather only trying to > populate it from the form values. You should be able to tell from the call stack which interceptors have been called--can you verify that parameters is included? I don't know if including more than one interceptor-ref inside the action definition uses all of them (in what order?) or just the last one--I always define the stacks I need separately and just refer to the appropriate one within my action definition... > So, it's a CREATE operation if you look at it from the CRUD perspective. > > After reading on HibernateAndSpringEnabledExecuteAndWaitInterceptor, > what I understand is it would be necessary for objects being populated > from the database (using Hibernate obviously) Does this created object contain any references to other DB objects? -Dale - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ This e-mail has been scanned by The Leukemia & Lymphoma Society Managed Email Content Service, provided by Verizon Business. NOTICE: This message, including all attachments transmitted with it, is for the use of the addressee only. It may contain proprietary, confidential and/or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you are not the intended recipient, you must not, directly or indirectly, use, disclose, distribute, print or copy any part of this message. If you believe you have received this message in error, please delete it and all copies of it from your system and notify the sender immediately by reply e-mail. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [struts] help with execAndWait
Mazhar, Osman (Home Office) wrote: That is an interesting point. The bean is a hibernate object, however, I am not retrieving it from the database, but rather only trying to populate it from the form values. You should be able to tell from the call stack which interceptors have been called--can you verify that parameters is included? I don't know if including more than one interceptor-ref inside the action definition uses all of them (in what order?) or just the last one--I always define the stacks I need separately and just refer to the appropriate one within my action definition... So, it's a CREATE operation if you look at it from the CRUD perspective. After reading on HibernateAndSpringEnabledExecuteAndWaitInterceptor, what I understand is it would be necessary for objects being populated from the database (using Hibernate obviously) Does this created object contain any references to other DB objects? -Dale - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [struts] help with execAndWait
That is an interesting point. The bean is a hibernate object, however, I am not retrieving it from the database, but rather only trying to populate it from the form values. So, it's a CREATE operation if you look at it from the CRUD perspective. After reading on HibernateAndSpringEnabledExecuteAndWaitInterceptor, what I understand is it would be necessary for objects being populated from the database (using Hibernate obviously) Unless I'm mistaken -Original Message- From: Dale Newfield [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 29, 2008 1:46 PM To: Struts Users Mailing List Subject: Re: [struts] help with execAndWait Mazhar, Osman (Home Office) wrote: > I am trying to use the execAndWait interceptor. If this bean is retrieved from your DB, then it's likely the DB session is being closed. http://wiki.opensymphony.com/display/WW/HibernateAndSpringEnabledExecute AndWaitInterceptor -Dale - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ This e-mail has been scanned by The Leukemia & Lymphoma Society Managed Email Content Service, provided by Verizon Business. NOTICE: This message, including all attachments transmitted with it, is for the use of the addressee only. It may contain proprietary, confidential and/or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you are not the intended recipient, you must not, directly or indirectly, use, disclose, distribute, print or copy any part of this message. If you believe you have received this message in error, please delete it and all copies of it from your system and notify the sender immediately by reply e-mail. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [struts] help with execAndWait
Mazhar, Osman (Home Office) wrote: I am trying to use the execAndWait interceptor. If this bean is retrieved from your DB, then it's likely the DB session is being closed. http://wiki.opensymphony.com/display/WW/HibernateAndSpringEnabledExecuteAndWaitInterceptor -Dale - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
help with execAndWait
Hello, I am trying to use the execAndWait interceptor. My struts.xml looks like: foo.jsp foo-success.jsp foo-wait.jsp foo.jsp foo.jsp Now in my action class, I have a bean with appropriate getter and setter methods on it. The foo.jsp has a form which is mapped to attributes of the bean in the action class. For example, . The form tag looks like When I run the application with the given struts.xml above, myBean gets populated properly in the processFoo method (I'm assuming the Parameter interceptor does that). However, when I uncomment and try to use the execAndWait interceptor, for some reason, myBean comes out to be NULL in processFoo(). Any help will be appreciated. - Osman __ This e-mail has been scanned by The Leukemia & Lymphoma Society Managed Email Content Service, provided by Verizon Business. NOTICE: This message, including all attachments transmitted with it, is for the use of the addressee only. It may contain proprietary, confidential and/or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you are not the intended recipient, you must not, directly or indirectly, use, disclose, distribute, print or copy any part of this message. If you believe you have received this message in error, please delete it and all copies of it from your system and notify the sender immediately by reply e-mail. Thank you.