aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes How to configure only one login-config in an app with two war files ? (LDAP sign on) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How to configure only one login-config in an app with two war files ? (LDAP sign on)" Watch "How to configure only one login-config in an app with two war files ? (LDAP sign on)" New topic
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: 689
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: 689
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to configure only one login-config in an app with two war files ? (LDAP sign on)