HI Ghosh:
Make a class based on singelton pattern, which handles
the all database functionality, place this class in a
jar and place it in
TOMCAT_HOME/lib
Now you all servlets can access this same class file
and so using same session, Not sure whether and how
jsp can use it, can someone here clear this?
Hemant
--- Debashis Ghosh <[EMAIL PROTECTED]> wrote:
> Hi,
> Can anyone suggest How can I make tomcat to
> instantiate a class so that i can
> access it from my
> jsp or servlet as an application level
> variable.Basically i want to
> instatiate one connection pool class so
> that i can access it from my servlet to get an
> connection object out of it.
>
> On Wednesday 13 June 2001 06:47 pm, you wrote:
> > Below is good advice. If the login page does not
> > come up (btw, what happens does it just take you
> > direct to the protected resource?) the first place
> I would
> > look is the tomcat config files. So basically I
> would
> > double-check server.xml and the web-xml for your
> app.
> > If you are sure they are correct and you still
> have a problem
> > you might want to try posting the relevant
> sections to the list.
> >
> > If you do get JDBCRealm working with tomcat
> standalone then
> > to integrate with apache you need to add
> >
> > JkMount
> /examples/jsp/security/login/j_security_check ajp13
> > (or ajp12 if using mod_jserv) to httpd.conf to
> tell apache
> > to delegate the handling of this bit of magic to
> tomcat.
> >
> > andrew
> >
> > On Wed, 13 Jun 2001, you wrote:
> > > > Mark, I appreciate your help. I have tried
> > > > to adapt the examples and I believe I have
> everything
> > > > in place. However, apache just wont bring the
> login
> > > > form when I try to access a protected
> resource.
> > > > Would you have any idea where to look at for
> this problem?
> > >
> > > You might want to check and see if you can get a
> > > JDBCRealm to work with tomcat standalone(i.e.
> accessing
> > > you site as http://localhost:8080/... directly).
> > > If this doesn't work get this working first and
> > > that's a good place to start from. Once you
> have
> > > JDBCRealm working correctly then you can deal
> with
> > > making sure it works when passed through apache.
> > >
> > >
> > > ---
> > > Michael Wentzel
> > > Software Developer
> > > Software As We Think - http://www.aswethink.com
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/