|
It's a little more work than a simple filter. It requires a
filter and an HttpServletResponseWrapper. I've included a simple
version here along with the web.xml file config you will need in order to use
it. You might want to consider changing the scope of the filter. I'll leave that
up to you. As always, no warranties...use at your own risk,
etc.
<filter>
<filter-name>FlashHttpStatusCodeFilter</filter-name> <description></description> <filter-class>com.cynergysystems.filter.FlashHttpStatusCodeFilter</filter-class> <init-param> <param-name>debug</param-name> <param-value>false</param-value> </init-param> </filter> <filter-mapping>
<filter-name>FlashHttpStatusCodeFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> This should work on any J2EE server. I have only tested it
on Tomcat.
Carson
____________________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Carson Hager Sent: Saturday, July 15, 2006 10:15 AM To: [email protected] Subject: RE: [flexcoders] Re: ACcess SOAP fault code
The easiest way to do this is to create a simple filter and
change the status only when the requester is the Flash
Player.
Carson ____________________________________________
Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of ting_first Sent: Saturday, July 15, 2006 7:20 AM To: [email protected] Subject: [flexcoders] Re: ACcess SOAP fault code Does somebody know how to swap HTTP error code (from 500 to 200)
in -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|
HttpServletResponseWrapper.java
Description: HttpServletResponseWrapper.java
FlashHttpStatusCodeFilter.java
Description: FlashHttpStatusCodeFilter.java

