File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Murach's Java Servlets and JSP
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 ?
subject: using filters with struts
Getting error while upgrading my running application from jboss-4.2.1.GA to jboss-6.0.0.Final.
Problems with Java Melody
Struts 2 filter mapping
Filter Mapping Problem
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-2014