Getting userid in Webfacing application
115 pts.
0
Q:
Getting userid in Webfacing application
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: Aug 18 2009  6:32 PM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
115 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
Sorry... this is the code I meant to insert:


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"));
Last Answered: Aug 18 2009  6:34 PM GMT by Lenny2113   115 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



0