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/-S2--ExecAndWait-interceptor-%3A-request.getSession%28%29-null-tf4248436.html#a13135653
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to