Following a thread started on the Security/JAAS forum,
i'd like to know how to add a valve to a dynamicaly deployed application.
I tried this :
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; } }