best and simple way of login mechanism

2004-05-24 Thread Arora, Avinash
Hi, I want to provide a login page for my web applicatioin. I used the memory realm, by making changes in the server.xml. But it started giving me Connection errors, and I was not able to see the web pages. Then I commented the Memory realms tag and then I was able to see the web pages correctly

error shutting down the tomcat

2004-05-12 Thread Arora, Avinash
Hi, I was making some changes to my server.xml (I was adding another context to it). I was also using the webpage of manager. But even after making changes I cannot see the newly context available in the manager window. I decided to restart tomcat using command line. But I am getting the follwin

log in page using tomcat

2004-05-11 Thread Arora, Avinash
Hi, Does tomcat provides any help in creating the "log in" page. I want to create a login page, that will accept same username and password specified in server.xml particular data source context (for logging to database) in the ResourceParams tag. Thanks. Avinash Arora ---

closing the statement and result set object

2004-05-10 Thread Arora, Avinash
Hi, When we obtain the Statement object from the connection object is it necessary to close the statement object separately, when I am closing the connection object. I had an impression that when we close the Connection object the Statement and Result set objects get closed automatically. Am I c

setting dbcp connection pool connections

2004-05-07 Thread Arora, Avinash
Hi, How do we set up the number of connections that we want, while using dbcp connection pooling provided by tomcat. I think we have to configure some xml file. But don't know what changes we have to make in which file. Can any body give a sample file. Thanks. Avinash Arora ---

specifying location of confg file

2004-05-06 Thread Arora, Avinash
Hi, How can we specify the location of config file, so that we don't have to hardcode it in our code. Thanks. Avinash Arora Avinash Arora -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 3:27 PM To: [EMAIL PROTECTED] Subject: t

RE: DB connection pool problem

2004-05-06 Thread Arora, Avinash
ssage tells that the web.xml and java code is fine. The server.xml is not edited correctly. in you server.xml, you put , but where is the resource "jdbc/conversion"? -Original Message----- From: Arora, Avinash [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 4:07 PM To: Daxin Zu

RE: DB connection pool problem

2004-05-05 Thread Arora, Avinash
y. Connection object found to be > null"); > > > Why are you doing a Class.forName call after getting a datasource > object? I think you're mixing incompatible database access methods. > Try doing dataSource.getConnection() after getting a valid datasource >

RE: DB connection pool problem

2004-05-04 Thread Arora, Avinash
x27;re mixing incompatible database access methods. > Try doing dataSource.getConnection() after getting a valid datasource > instead. You'll be happier with the result. Take a look at the > javadocs for javax.sql.DataSource for more info. > > --David > > Arora, Avinash w

RE: DB connection pool problem

2004-05-04 Thread Arora, Avinash
str = "select * from myTable"; pStateSearch = con.prepareStatement(str, ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY ); rs = pStateSearch.executeQuery(); That's all. -Original Message- From: A

DB connection pool problem

2004-05-03 Thread Arora, Avinash
Hi, I am also having the problem with the connection pools. Since I am writing an application first time by using connection pools, I created a test application DBTest. I edited my server.xml and web.xml (of my application in following way-- #added to server.xml

editing tomcat class path

2004-03-15 Thread Arora, Avinash
Thread.java:536) Apache Tomcat/4.1.29 Avinash Arora Avinash Arora - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

editing the class path w

2004-03-14 Thread Arora, Avinash
Thread.java:536) Apache Tomcat/4.1.29 Avinash Arora   Avinash Arora - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]