A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
using filters with struts
senthil kumar m
Joined: Nov 28, 2010
Mar 07, 2011 07:01:03
it is a
the filter configuration is as follows,
<filter> <filter-name>samplefilter</filter-name> <filter-class>org.samplepack.SampleFilterXXX</filter-class> </filter> <filter-mapping> <filter-name>samplefilter</filter-name> <servlet-name>action</servlet-name> </filter-mapping>
mapping is as follows,
<servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping>
Here this filter will be executed for all action classes..right?? [have a slight doubt on that too ]
I planned to use it for checking the session informations..
is it a good practice?
can you post the situations whereever i can apply this effectively ?
Have you checked out
subject: using filters with struts
Struts 2 filter mapping
Getting error while upgrading my running application from jboss-4.2.1.GA to jboss-6.0.0.Final.
Filter Mapping Problem
Problems with Java Melody
The Struts dispatcher cannot be found error
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015