File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to execute the SignonFilter

 
Seetesh Hindlekar
Ranch Hand
Posts: 244
  • 0
  • 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic