I found a strange behaviour in action after execAndWait interceptor. I have
1. <action name="doSearch" class="s2.action.SearchAction" > <interceptor-ref name="basicStack"/> <interceptor-ref name="execAndWait"> <param name="delay">2000</param> <param name="delaySleepInterval">500</param> </interceptor-ref> <result name="wait">wait_search.jsp</result> <result name="success" type="redirect" >search_result.jsp</result> </action> 2. s2.action.SearchAction: public class SearchAction extends ActionSupport implements ServletRequestAware { protected HttpServletRequest request; private HttpSession sess; public String execute() throws Exception{ /*I*/ sess = request.getSession();// not NULL !!!!! try { // выполняется поиск и опрос всех поставщиков в пультипотоковом режиме Thread.currentThread().sleep(6*1000); } catch (InterruptedException ex) { _log.error("Long search action",ex); } /*II*/ sess = request.getSession(); // !!! is NULL !!!!! storeSearchParameters(); return this.SUCCESS; } public void setServletRequest(HttpServletRequest httpServletRequest) { request = httpServletRequest; } } I spend 3 hours before guess to move from "II" to "I" :-( -- View this message in context: http://www.nabble.com/NULL-Session-object-after-execAndWait-interceptor-tf4600442.html#a13134712 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]