Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

j_security_check filter

 
Tome Wagese
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friends,
I have been trying to make it work in Tomcat/6.0.2 with no luck.
I need to do some additional credential check using filter but filter code never kicks in. Any thoughts appreciated.
Below is my setup snippet.
web.xml

<filter>
<filter-name>PostLoginFilter</filter-name>
<filter-class>PostLoginFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>PostLoginFilter</filter-name>
<url-pattern>/j_security_check</url-pattern>
</filter-mapping>

Login page:
<form name="loginForm" method="post" action="j_security_check">
logon <input type="text" name="j_username"/>
Password: <input type="password" name="j_password">
<input type="submit" name="btnSubmit" value="Sign In" />
</form>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic