I have an application (ear file) witch is composed by two war files and a jar (for EJBs). I used LDAP authentication configured declaratively. It is working fine, but I have to configure each war with their own login pages. Each web.xml must have their own <login-config>, and I have a login.jsp page for each war. Is there a way to put the login page in just a war file, and configure the other war file to find this login page on the first .war ?
The way I'm using now, if I have to change something in the login page I'll have to configure it twice.
I've found what I was looking for: created a new Struts Action, where I wrote response.sendRedirect(url). Also changed web.xml <login-config>, where I call the url related to my Action.
SCEA 5 (part 1), SCBCD, SCWCD, SCJP, CLP, CLS
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.