Re: Using beans and Security...

2002-05-10 Thread Ingo Bruell

Hi Tomcat,

MG I've written a bean which handles database connections. its config is a
MG xml file which is located in the same jar as the bean and lies under
MG WEB_INF/lib.
MG in the bean the method getResource(config.xml) is called to load the
MG config file. but somehow i don't have access to config.xml in the jar.
MG it works fine if i use it outside tomcat servles environment. 
MG i tried a lot with classloader but till now i didn't manage to load the
MG config.xml. 
You should use the classloader to load the resource.


so long


Ingo Bruell

---
[EMAIL PROTECTED]
[EMAIL PROTECTED]
ICQ# 40377720
OldenburgPGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648 169E E5FC
Germany  PGP-Public-Key available at pgpkeys.mit.edu



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: using beans

2001-03-08 Thread guyr

Look at the jsp:useBean tag.  Here is an example usage:

jsp:useBean id="contact" scope="request"
class="com.zephion.ds.DbContactExt"/
%
contact.setUser_id(aUserId);
%

-Original Message-
From: Bob Kersten [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 6:04 AM
To: [EMAIL PROTECTED]
Subject: using beans


Hi,

So... i've installed Borland JBuilder 3.5 and I created a
JavaBean. Looking at the project directory, it created a .class file.
How do I use this file, and where do I place it? I've got in-line JSP
(servlet?) working with Tomcat, but I've never used a bean or
what-so-ever, so I don't exactly know where to place the files and how
to implement it.

Thnx,
Bop.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]