does anyone have a good example using a javabean to establish connection to a datebase. im trying to figure out the best way to reuse code. i can try one of the following methods:
1: i dont use javabeans and put all my connetion and queries inside the jsp pages. So if i query the database three times in one jsp page, i have 3 duplications.
2: is what im trying to do is make a general java bean that makes connection and puts the recordset into a hash table.
Does anyone have examples of the second example?
Mike
From: "Henry Tang" <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Subject: Re: when are the java files compiled? Date: Thu, 6 Mar 2003 20:30:12 -0600
You need to compile it manually. If you are making it as some sort of package make sure it falls within the proper path
If it is a jar file, you can put it in lib directory.
This is how mine is done. You will then need to restart your tomcat and it shoudl work
henry
----- Original Message ----- From: "Michael Ni" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 06, 2003 7:36 PM Subject: when are the java files compiled?
> after i place a java bean in the classes folder such as bean.java, when
does
> it get compiled into a class? ive been shutdown and starting up but it
> hasn't been working. i also restarted the computer and actually tried to
> run my jsp page that calls the bean.
>
> mike
>
> _________________________________________________________________
> The new MSN 8: smart spam protection and 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
