Guys,
This is starting to drive me crazy now, big time!
(j2ee_junkie) - YES, I NEED A WAY TO ACCESS THE USERNAME AND PASSWORD AFTER A
USER HAS SUCCESSFULLY LOGGED IN !!
Here's the state of play.... I now have both the ExtendedFormAuthenticator and
the FormAuthValve defined in my apps context.xml and according to the JMX
console they both seem to be loaded and configured correctly.... and yet....
STILL "null" and "null" when I try and access the username and password values
in a JSP (within my protected web content i.e. after logging in) using the
method below:
anonymous wrote : <%
| String username = (String) session.getAttribute("j_username");
| String password = (String) session.getAttribute("j_password");
| %>
| Username: <%=username%>
| Password: <%=password%>
|
Guys, it is really beyond me that this is not better documented somewhere on
this site... I cannot believe that I am the first person that needs the
username and password after successfully loggin in !!!
junkie, you obviously didn't understand what I was looking for to begin with so
that's fine, but hopefully you do now, and anil your comment about using the
FormAuthValve seemed to make sense when I saw the code... but neither Valves
seem to be working... I can't get the TRACE working anil because of the Log4J
problem....
anonymous wrote : 22:19:52,796 ERROR [STDERR] log4j:ERROR Could not create
level [TRACE]. Reported error follows.
| 22:19:52,796 ERROR [STDERR] java.lang.ClassCastException:
org.jboss.logging.XLevel
| 22:19:52,796 ERROR [STDERR] at
org.apache.log4j.xml.DOMConfigurator.parseLevel(DOMConfigurator.java:522)
| 22:19:52,796 ERROR [STDERR] at
org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.jav
| a:438)
| 22:19:52,796 ERROR [STDERR] at
org.apache.log4j.xml.DOMConfigurator.parseCategory(DOMConfigurator.java:345)
| 22:19:52,796 ERROR [STDERR] at
org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:827)
| 22:19:52,796 ERROR [STDERR] at
org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:712)
| 22:19:52,796 ERROR [STDERR] at
org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:618)
| 22:19:52,796 ERROR [STDERR] at
org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:468)
This is all so frustrating !!!!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3948214#3948214
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3948214
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user