I did this valve
public class FormRedirectAuthenticator extends FormAuthenticator {
|
| public boolean authenticate(HttpRequest request, HttpResponse response,
| LoginConfig arg2) throws IOException {
|
| boolean formOk = super.authenticate(request, response, arg2);
|
| if (formOk) {
| System.out.println("Performing changes ...");
| request.setRequestURI("/test-login/secured/index.jsp");
| request.setContextPath("/test-login");
| request.setServletPath("/secured/index.jsp");
| }
|
| return formOk;
| }
| }
Unfortunatly, I found no way to add it 'dynamicaly' to my exploded .war
directory.
Two questions :
1/ may this valve worked if I find a way to add it ?
2/ how to add a Valve on a 'per-dynamic context' ?
Thanks,
Ionel
PS : sorry for this but I will cross-post on the tomcat forum
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3868422#3868422
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3868422
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user