Get the User Id

X-Application Version: 3.1.2
Tamino Version : 3.1.1
Platform : Win2K
WebContainer : Tomcat 3.3
JDK Version : 1.3.1

Hi !

In my application I need to get the current User ID for data security control.
The application security login is under Apache.

Would you please give some directions on this implementation?

Thanks very much in advance.

Monica Fernandes

Not much I can help here, I only know that the
property demo has a login page (demo/property/login.jsp).

People with security knowledge will be back on Monday.


Software AG Germany, Darmstadt

Hi Monica,

the easiest way to access the information you want is to use embedded Java code inside your JSP page.
The code to be embedded should look something like this:

  <%<BR>  out.println("The User ID: " + request.getRemoteUser());<BR>  %>

The Scriplet above just displays the User ID in the resulting HTML page.

If you need the User ID to be processed further you may want to extend an existing JSP tag as described in the documentation.

I hope this helped you a little.

Thank you for your contribution.

Stefan Schwalm
Software AG, Darmstadt

Thanks for your reply Stefan!

I’ll try and will let you know the results!

Thanks again.