aspose file tools*
The moose likes Struts and the fly likes After an LDAP login, how do you get past this...Welcome page, login, welcome, login?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "After an LDAP login, how do you get past this...Welcome page, login, welcome, login??" Watch "After an LDAP login, how do you get past this...Welcome page, login, welcome, login??" New topic
Author

After an LDAP login, how do you get past this...Welcome page, login, welcome, login??

Alex Kovalchuk
Greenhorn

Joined: Oct 20, 2004
Posts: 13
The welcome page is successful. The login is successful. etc...

More to the point. How would I check in the JSP (at the Welcome page) if the user had logged in?

Or would you check it that way?

I've been struggling with this.

The environment contains WSAD 5.1.2, jsp, struts.

Thanks,
Alex
Alex Kovalchuk
Greenhorn

Joined: Oct 20, 2004
Posts: 13
Let me make a small correction. I am using LDAP security.
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

<%if(request.getRemoteUser() != null){%>
do stuff here
<%}%>


A good workman is known by his tools.
Alex Kovalchuk
Greenhorn

Joined: Oct 20, 2004
Posts: 13
Wow... thanks.

I tweaked it a little.
 
Consider Paul's rocket mass heater.
 
subject: After an LDAP login, how do you get past this...Welcome page, login, welcome, login??