Author: vdedik
Date: 2012-08-08 10:00:02 -0400 (Wed, 08 Aug 2012)
New Revision: 15021
Modified:
branches/community/Seam_2_3/jboss-seam/src/main/java/org/jboss/seam/web/RedirectFilter.java
Log:
- JBSEAM-4968
- Fixed case when two HttpServletResponse#sendRedirect are invoked by Seam.
Modified:
branches/community/Seam_2_3/jboss-seam/src/main/java/org/jboss/seam/web/RedirectFilter.java
===================================================================
---
branches/community/Seam_2_3/jboss-seam/src/main/java/org/jboss/seam/web/RedirectFilter.java 2012-08-08
13:43:12 UTC (rev 15020)
+++
branches/community/Seam_2_3/jboss-seam/src/main/java/org/jboss/seam/web/RedirectFilter.java 2012-08-08
14:00:02 UTC (rev 15021)
@@ -69,7 +69,11 @@
}
}
}
- super.sendRedirect(url);
+ //if the response is already committed (e.g. a redirect has been already
sent) do nothing
+ if ( !super.getResponse().isCommitted() )
+ {
+ super.sendRedirect(url);
+ }
}
};
}
Show replies by date