This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes OO, Patterns, UML and Refactoring and the fly likes How to execute the SignonFilter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "How to execute the SignonFilter" Watch "How to execute the SignonFilter" New topic
Author

How to execute the SignonFilter

Seetesh Hindlekar
Ranch Hand

Joined: Feb 13, 2004
Posts: 244
Hi,

I have coded the SignOnFilter pattern as per the petstore example and configured the same in web.xml

web.xml
-------
<filter>
<filter-name>signonfilter</filter-name>
<filter-class>com.epfindia.control.servlet.SignOnFilter</filter-class>
</filter>

<servlet>
<servlet-name>userservlet</servlet-name>
<servlet-class>epfo.control.servlet.UserServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>userservlet</servlet-name>
<url-pattern>/userservlet</url-pattern>
</servlet-mapping>

How does the UserServlet connect to the filtername "signonfilter" defined in web.xml?

Any link to websites for how to do this would be highly appreciated.

Thanks,

Rex
 
 
subject: How to execute the SignonFilter
 
Similar Threads
How to make Filter getting called only once for every User
Execute SignonFilter
Using a filter to secure a set of servlets.
Unable to get the filter to work
Call a servlet on the url pattern /_/