• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to configure only one login-config in an app with two war files ? (LDAP sign on)

 
Ranch Hand
Posts: 701
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Rogerio Kioshi
Ranch Hand
Posts: 701
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic