You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by c tang <cc...@yahoo.com> on 2001/11/02 23:30:03 UTC
help: config filter-mapping and struts
Hi all,
I wrote an app using struts and it works fine. Now I
want to add a filter, so that a pre-defined page will
be filtered before return. The question is how to
specify <filter-mapping>. I tried lots of options, it
does not work.
For the following action,
<action path="/generateBig"
type="GenerateBigAction"
name="form"
scope="request"
input="/get.jsp"
validate="false">
<forward name="success" path="/success"/>
</action>
I want to compress the response when it is forward to
success page(/success). When I map filter to
generateBig.do, the doFilter method is invoked, but
the request page is returned. Even if correct page is
return, I think mapping to generateBig.do is not the
right way because failure page will be filter too.
When I map filter to /success(or the servlet mapping
to /success), the doFilter method is not even invoked.
please help!
ct
__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>