Thanks Tim
I didn't see that one.It was really a silly mistake. Now it worked.
Thanks ..
Amit Varshney
Quoting [EMAIL PROTECTED]:
Le lun 01/03/2004 à 08:58, Tim Kelly a écrit :
There are missing parenthesis in the line:
String user1=request.getUserPricipal.getName();
It should
it did not work. The following error message is displayed
/usr/tomcat/webapps/intra/work/org/apache/jsp/accounts/jdbcmenu_jsp.java:61: cannot
resolve symbol
symbol : variable getUserPricipal
location: interface javax.servlet.http.HttpServletRequest
String
Le lun 01/03/2004 à 08:58, Tim Kelly a écrit :
There are missing parenthesis in the line:
String user1=request.getUserPricipal.getName();
It should be
String user1=request.getUserPricipal().getName();
Thats why you get the cannot resolve symbol :)
Tim
amit varshney wrote:
There are missing parenthesis in the line:
String user1=request.getUserPricipal.getName();
It should be
String user1=request.getUserPricipal().getName();
Thats why you get the cannot resolve symbol :)
Tim
amit varshney wrote:
it did not work. The following error message is displayed
I want to use tomcat user authentication in my application. for that i am using
JDBCRealm.I have set the security constraint in the web.xml. So when a request for
the restricted page comes a login page comes.
But the problem is that it is submitting to the j_security_check and the textboxes
I think you can get the user name by getting the Principal object from
request and then getting the name from it like
String userName = request.getUserPrincipal().getName();
-Shanmugam-
amit varshney wrote:
I want to use tomcat user authentication in my application. for that i am using