A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCM Java EE 6 Enterprise Architect Exam Guide
this week in the
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 ?
I agree. Here's the link:
subject: using filters with struts
Problems with Java Melody
Struts 2 filter mapping
Filter Mapping Problem
The Struts dispatcher cannot be found error
Getting error while upgrading my running application from jboss-4.2.1.GA to jboss-6.0.0.Final.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014