Author: schof
Date: Mon Nov 14 10:22:48 2005
New Revision: 344176
URL: http://svn.apache.org/viewcvs?rev=344176&view=rev
Log:
Make sure to cleanup the stored request attribute when exiting
ShaleApplicationFilter due to a "true" result in the preprocess command.
Modified:
struts/shale/trunk/core-library/src/java/org/apache/shale/faces/ShaleApplicationFilter.java
Modified:
struts/shale/trunk/core-library/src/java/org/apache/shale/faces/ShaleApplicationFilter.java
URL:
http://svn.apache.org/viewcvs/struts/shale/trunk/core-library/src/java/org/apache/shale/faces/ShaleApplicationFilter.java?rev=344176&r1=344175&r2=344176&view=diff
==============================================================================
---
struts/shale/trunk/core-library/src/java/org/apache/shale/faces/ShaleApplicationFilter.java
(original)
+++
struts/shale/trunk/core-library/src/java/org/apache/shale/faces/ShaleApplicationFilter.java
Mon Nov 14 10:22:48 2005
@@ -271,7 +271,10 @@
throw new ServletException(e);
}
if (result) {
- return; // Bypass calling the remainder of the application
+ // Clean up the stored request attribute
+ request.removeAttribute(CONTEXT_ATTR);
+ // Bypass calling the remainder of the application
+ return;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]