RE: struts2 problem when file download dialog is closed

2012-04-11 Thread svetlana . roslyakova
Adam, The control is out of the action class and if the user will open or save the file, there is no problem and the control goes to the JSP page. For some reason once the error occurs if the user clicks another button that makes AJAX call to server, the call does not go through but instead ret

RE: struts2 problem when file download dialog is closed

2012-04-11 Thread adam pinder
is the user "cancelling" still sending a request to the server and hence you are trying to return an error - if so i'd assume the http connection has been terminated and therefore you can't send an http response back. if its just logged but doesn't stop user experience then leave it. > To: us

Re: struts2 problem when file download dialog is closed

2012-04-11 Thread svetlana . roslyakova
Venkata, I use Struts2 2.2.1.1 version. I've changed the filter to StrutsPrepareAndExecute Filter. The same error: Servlet failed with Exception java.lang.IllegalStateException: Response already committed at weblogic.servlet.internal.ServletResponseImpl.objectIfCommitted(Servl etRespon

Re: Need Help On Writing JUnit / Http Unit test case for Struts 2 Application

2012-04-11 Thread Maurizio Cucchiara
Did you already take a look at [1]. Further, this is a very simple example based on my recent code [2] HTH [1] https://cwiki.apache.org/confluence/display/WW/Struts+2+JUnit+Plugin+Tutorial [2] https://gist.github.com/2357648 Twitter     :http://www.twitter.com/m_cucchiara G+          :https://p

Need Help On Writing JUnit / Http Unit test case for Struts 2 Application

2012-04-11 Thread chiranjib.das
Hi All - My Team is using Struts 2 to build a web application. As a part of writing unit test case for web application , I need a small favour. Can Anyone provide me any small POC or Sample code to run JUNIT for Struts2 Application[Using Security Interceptor etc ]or any Http Unit test Case Sampl