struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Nenning <>
Subject Re: S2: How to tell if a response has been committed from an interceptor?
Date Thu, 07 Jan 2016 09:38:42 GMT
> Inside an Interceptor I'm getting an exception
> java.lang.IllegalStateException: Cannot create a session after the 
> has been committed
> I have access to the ActionInvocation as this is passed into 
> public String doIntercept(ActionInvocation invocation) throws Exception
> My question is: from the ActionInvocation how do I find out if the 
> has been committed?
> Can I get the HttpServletResponse? So I can call response.isCommitted() 
> How?

If you really need access to Response you can get it via a static method 
in ServletActionContext.


This Email was scanned by Sophos Anti Virus

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message