[JBoss-user] [Security & JAAS/JBoss] - Re: Retriving principals after authentication.
it's request.getUserPrincipal().getName() Thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3860021#3860021 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3860021 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security & JAAS/JBoss] - Re: Retriving principals after authentication.
According to... http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpServletRequest.html There is no getPrincipal() View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3860020#3860020 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3860020 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security & JAAS/JBoss] - Re: Retriving principals after authentication.
Still no go! Same error request.getPrincipal().getName() Unresolved symbol View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3860018#3860018 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3860018 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security & JAAS/JBoss] - Re: Retriving principals after authentication.
in fact i looked at it through the eclipse code completion! and i didnt get the methodname getPrincipal! But i will try this! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3860017#3860017 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3860017 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security & JAAS/JBoss] - Re: Retriving principals after authentication.
Agree, it was typed a little too quickly, but you should, at least, check the javadoc of the javax.servlet.http.HttpServletRequest class. getPrincipal is a method, not a public instance variable (Java 101 ...). Try request.getPrincipal().getName() instead. Thomas View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859994#3859994 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859994 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security & JAAS/JBoss] - Re: Retriving principals after authentication.
Sorry more specifically, I would like to know the username (PrincipalID) that is loged in to my web site, so i can use that PrincipalID to query the DB for additional information. As sugested in the other post, request.getPrincipal.getName(), throws an exception as shown in the previous post. I also wanted to do this through filter so I can create a bean and pass it along through a session, so i wont have to query the DB for the extra info again. Thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859978#3859978 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859978 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security & JAAS/JBoss] - Re: Retriving principals after authentication.
Am trying this as I need it in my web container not ejb... request.getPrincipal.getName() But i get... An error occurred at line: 10 in the jsp file: /artists/profile_form.jsp Generated servlet error: D:\jboss-4.0.0\server\default\work\jboss.web\localhost\mamoth\org\apache\jsp\artists\profile_005fform_jsp.java:52: cannot resolve symbol symbol : variable getPrincipal location: interface javax.servlet.http.HttpServletRequest out.print(request.getPrincipal.getName()); ^ 1 error View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859976#3859976 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859976 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security & JAAS/JBoss] - Re: Retriving principals after authentication.
See http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859817 The isCallerInRole on the EJBContext object can be used to test user roles, and the isUserInRole on the HttpServletRequest can be used to do the same in a servlet context. There is no standard J2EE way to get the list of role of a user. Thomas View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859933#3859933 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859933 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user