| Author |
How to configure only one login-config in an app with two war files ? (LDAP sign on)
|
Rogerio Kioshi
Ranch Hand
Joined: Apr 12, 2005
Posts: 655
|
|
Hi people, 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.
|
SCEA 5 (part 1), SCBCD, SCWCD, SCJP, CLP, CLS
|
 |
Rogerio Kioshi
Ranch Hand
Joined: Apr 12, 2005
Posts: 655
|
|
|
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.
|
 |
 |
|
|
subject: How to configure only one login-config in an app with two war files ? (LDAP sign on)
|
|
|