You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Ostad, James" <JO...@geneseeisd.org> on 2003/12/10 16:01:01 UTC

getting j_username from form

I am trying to get the j_username from the form after authentication.
But I am getting null each time. here is what I am using to get it:

String loginfo = session.getAttribute("j_username");

and the value of the loginfo is null.

any help would be nice.

James Ostad
Application Developer/Analyst
TMS Department
Ex. 4457
E-mail: jostad@geneseeisd.org


Out---> (3)



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: getting j_username from form

Posted by Andoni <an...@indigo.ie>.
try

String loginfo = (String)req.getRemoteUser();

Andoni.


----- Original Message ----- 
From: "Ostad, James" <JO...@geneseeisd.org>
To: "Tom (E-mail)" <to...@jakarta.apache.org>
Sent: Wednesday, December 10, 2003 3:01 PM
Subject: getting j_username from form


I am trying to get the j_username from the form after authentication.
But I am getting null each time. here is what I am using to get it:

String loginfo = session.getAttribute("j_username");

and the value of the loginfo is null.

any help would be nice.

James Ostad
Application Developer/Analyst
TMS Department
Ex. 4457
E-mail: jostad@geneseeisd.org


Out---> (3)



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org