Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to execute the SignonFilter

 
Seetesh Hindlekar
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic