S2: How to tell if a response has been committed from an interceptor?

2016-01-06 Thread Greg Lindholm
Inside an Interceptor I'm getting an exception java.lang.IllegalStateException: Cannot create a session after the response has been committed I have access to the ActionInvocation as this is passed into doIntercept() public String doIntercept(ActionInvocation invocation) throws Exception My

RE: Editing a JPA entity

2016-01-06 Thread C N Davies
Christoph I understand why this happens, I was simply asking if there was a better way to do this using some struts session magic or such. Seems there isn't so I'll just do it the old long winded way. -Original Message- From: Christoph Nenning [mailto:christoph.nenn...@lex-com.net]

Re: S2: How to tell if a response has been committed from an interceptor?

2016-01-06 Thread Ken McWilliams
Well you go down the chain create the result and then back up the chain. So when going back up the response should already be committed. see: https://struts.apache.org/docs/writing-interceptors.html //modified code from above link to clarify public String intercept(ActionInvocation

Re: unsubscribe me

2016-01-06 Thread Dave Newton
That isn't how it works. https://struts.apache.org/mail.html On Wed, Jan 6, 2016 at 4:22 PM, john feng wrote: > unsubscribe > -- e: davelnew...@gmail.com m: 908-380-8699 s: davelnewton_skype t: @dave_newton b: Bucky Bits

unsubscribe me

2016-01-06 Thread john feng
unsubscribe