Re Re: ReRe: Need Help in Session Management !!!
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 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 /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 user1=request.getUserPricipal.getName(); ^ . Quoting [EMAIL PROTECTED]: 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 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 are named j_username and j_password respectivley.I want session mangemant in my application. For that I need the login name of the person on my each page. How can I pass the username from login page to my page. is it possible to maintain session using tomcat user authentication or should i go for my own authentication and session management. Plz help me Thanks in advance Amit Varshney - Still single? Click here to find the perfect match. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Still single? Click here to find the perfect match. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141 -- Tim Kelly, Director of Development Building Engines, Inc. Phone: 781-290-5300 Cell: 508-561-0985 www.buildingengines.com 275 Wyman Street Suite 11 Waltham MA 02451 Well, I think you also have a typo. It should be request.getUserPrincipal.getName(), not request.getUserPricipal.getName(). Notice the missing n in Principal. -- === Daniel Savard Consultation Informatique Daniel Savard 551, boul. Sir-Wilfrid-Laurier suite 105 Beloeil, (Québec) Canada J3G 4J1 Tél: (450) 467-8014 Internet: [EMAIL PROTECTED] === - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Still single? Click here to find the perfect match. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141
ReRe: Need Help in Session Management !!!
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 user1=request.getUserPricipal.getName(); ^ . Quoting [EMAIL PROTECTED]: 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 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 are named j_username and j_password respectivley.I want session mangemant in my application. For that I need the login name of the person on my each page. How can I pass the username from login page to my page. is it possible to maintain session using tomcat user authentication or should i go for my own authentication and session management. Plz help me Thanks in advance Amit Varshney - Still single? Click here to find the perfect match. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Still single? Click here to find the perfect match. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141
Need Help in Session Management !!!
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 are named j_username and j_password respectivley.I want session mangemant in my application. For that I need the login name of the person on my each page. How can I pass the username from login page to my page. is it possible to maintain session using tomcat user authentication or should i go for my own authentication and session management. Plz help me Thanks in advance Amit Varshney - Still single? Click here to find the perfect match. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141
Problem at Tomcat Start up
I am working on Redhat Linux 9 I am using Oracle 9I for JdBc Realm for user authentication.the tomcat server could not started. I am getting the following error message in Catalina.out. Feb 11, 2004 4:25:54 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Feb 11, 2004 4:25:54 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 7197 ms Feb 11, 2004 4:25:55 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Feb 11, 2004 4:25:55 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.18 java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) Caused by: java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491) at java.lang.Runtime.loadLibrary0(Runtime.java:788) at java.lang.System.loadLibrary(System.java:834) at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java) at oracle.jdbc.driver.OracleConnection.init(OracleConnection.java) at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java) at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:645) at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:709) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1117) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345) at org.apache.catalina.startup.Catalina.start(Catalina.java:598) ... 6 more Feb 11, 2004 4:31:10 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Feb 11, 2004 4:31:11 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 6124 ms Feb 11, 2004 4:31:11 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Feb 11, 2004 4:31:11 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.18 java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) Caused by: java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491) at java.lang.Runtime.loadLibrary0(Runtime.java:788) at java.lang.System.loadLibrary(System.java:834) at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java) at oracle.jdbc.driver.OracleConnection.init(OracleConnection.java) at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java) at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:645) at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:709) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1117) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345) at org.apache.catalina.startup.Catalina.start(Catalina.java:598) ... 6 more Thanks in advance Amit - Still single? Click here to find the perfect match. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem during creation of users using Tomcat Admin
I am using JDBCRealm to store the username and password in the Oracle database. The problem is that the user created through Admin are being stored in the Tomcat-users.xml instead in the database.How can I store thenm in the database? Thanx in advance Amit Varshney - Still single? Click here to find the perfect match. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help: problem using Tomcat Administrator
I am using JDBCRealm to store the username and password in the Oracle database. The problem is that the user created through Admin are being stored in the Tomcat-users.xml instead in the database.How can I store thenm in the database? Thanx in advance Amit Varshney - Still single? Click here to find the perfect match. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat + Eclipse
I know that this is not the right place to ask this question but I will be grateful to receive ur replies. I am just a biginner to use eclipse. I have Tomcat plugin but i don't how to run Tomcat from within Eclipse.and how to run an application. Thanx in advance. Amit Varshney - Still single? Click here to find the perfect match. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat+Eclipse
I know that this is not the right place to ask this question but I will be grateful to receive ur replies. I am just a biginner to use eclipse. I have Tomcat plugin but i don't how to run Tomcat from within Eclipse.and how to run an application. Thanx in advance. Amit Varshney - Still single? Click here to find the perfect match. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
help: want to encrypt Tomcat user passwords
I am using jdbcrealm to store the username and passwords in the Oracle 9I database. But th passwords are stored as plain Texts. I want to encrypt the passwords. How can I do it? Is there any InBuilt feature in Tomcat? Thanx in advance Amit Varshney - Still single? Click here to find the perfect match. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem using Tomcat Authentication
I am using the Jdbcrealm to authenticate the users.I want to use admin tool to create the users. But when I create the uses admin tool the user name and password r not being stored in the database rather they r being stored in /conf/Tomcat-users.xml. What should I do so that the user created through ADMIN Tool goes into the database? Thanx in advance Amit Varshney - Still single? Click here to find the perfect match. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
help: want to encrypt Tomcat User's Pasword ?
I am using tomcat jdbcrealm to store the users and password in Oracle 9I database. But the passwords are stored as plain text. I want to encrypt passwords.How can I do this ? Is there any Inbuilt feature in Tomcat? Thanx in advance. Amit Varshney - Still single? Click here to find the perfect match. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem using Tomcat User Authentication
I am working in JSP/Servlets on Windows XP. I want to use the Tomcat user Authentication in my web application. So using tomcat's JDBC Realm I have stored the username and passwords in the Oracle 9I Database. I want to use authentcation for accessing the different modules. so I have created the main page on which there r links to different modules. Using Security Costraint in the web.xml file I have made the access restricted.so When a user clicks on a link he is asked the user name and password. this works fine but the problem I am facing is that when i come back to the main page and click on some other link the login page is not displayed rather there is eror message that the access to the requested resource is denied is there any way to solve this problem? Tahnx in advance Amit Varshney - Still single? Click here to find the perfect match. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]