Getting userid in Webfacing application

115 pts.
Tags:
JSP
RAD
RADi 7.5
WebFacing Tools
I am trying to pass userid from webfacing application index.jsp page via URL parameter. This is what I have been doing this far: None of these return real user's userid. All return "null" valueAt this point user is not logged on, so I need some sort of "system userid" but of the real user logged into the network. The application id RADi version 7.5. Project is generated from "webfacing" application. Any suggestions, please? Thanks a lot !

String userId = request.getRemoteUser();  

System.out.println(



"USER_ID = " + userId);  

String userID = request.getParameter(



"USERID"); System.out.println(



"user_id 1 = " + userID);  

System.out.println(



"Session Value " + request.getSession().getAttribute("userid"));  



ASKED: August 18, 2009  6:32 PM
UPDATED: August 18, 2009  6:57 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Sorry… this is the code I meant to insert:

<pre>
String userId = request.getRemoteUser();

System.out.println(“USER_ID = ” + userId);

String userID = request.getParameter(“USERID”);
System.out.println(“user_id 1 = ” + userID);

System.out.println(“Session Value ” + request.getSession().getAttribute(“userid”));
</pre>

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following