I'm not quite sure about JRun but I suppose it should be the same as with
Tomcat, because it is layed down in the Servlet specifications: If you need
database access only in your web-application, then just put the jar file in
the /WEB-INF/lib-directory of your web-application.
If this directory does not exist yet, simply create it.
So your directory structure should be similar to this:
jrun_path/webapps/your_webapp/WEB-INF/lib/*.jar (with your JSP in the
your_webapp directory).
When starting JRun, all jar files in this lib directory should automatically
be included in your classpath. However, I think this does not work with
Tomcat under Win98 and I do not know if it works with JRun/Win98.
Alternatively, you can just add the path to your jar file to the classpath
set in your autoexec.bat. If the there is no classpath set in your
autoexec.bat, simply add a line like:
set CLASSPATH=.;C:\path_to_the_jar_file
to the autoexec.bat file (and do not forget to restart your computer aver
having done so).
Good luck
Michael
-----Urspr�ngliche Nachricht-----
Von: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]Im Auftrag von Supreme Being
Gesendet: Montag, 7. Mai 2001 06:53
An: [EMAIL PROTECTED]
Betreff: Re: AW: mySQL with JSP
>Simply include the jar file in your classpath and access your
>MySQL-databases through the classes of the JDBC-API.
thanks a lot. but can you tell me where exactly (as in, which folder?) do i
have to place my .jar file? i'm using the JRun server. where should i keep
the .jar file so that it's usable when include it in the classpath.
cheers,
T. Edison jr.
------------------------------------------------------------
Are you a Hoboe? Hobnob at http://www.hoboe.com
Click here -> http://www.hoboe.com Global Mail Access
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets