You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Affonso Loyola <al...@domain.com.br> on 2000/01/13 23:59:36 UTC

Classpath to JSP

How can I and jar files to my JSPs

For example the classes111.zip (Oracle JDBC Driver)

Its something in the WEB-INF of the context?

Affonso Loyola

Re: Classpath to JSP

Posted by Danno Ferrin <sh...@earthlink.net>.
if you are using Java2 (jdk/jre 1.2 or 1.3) you can ge the same effect from
placing the libraries under <jre-home>/lib/ext/   this exposes the classes
to all instances of the JVM w/o classpath games or the benifit of seperate
classloader contexts... but if you just want the libs exposed only on a
per-app basis then the shell script editing is the most consistant solution.


----- Original Message -----
From: "Sasa Brcerevic" <sa...@tpg.au.com>
To: <to...@jakarta.apache.org>
Sent: Thursday, January 13, 2000 6:16 PM
Subject: RE: Classpath to JSP


> sure if the library is application specific, but what if we want a system
> resource (like the DB driver) which is going to be used by a number of
> applications? I also consider editing the start scripts ugly, but could
not
> find anything more appropriate - am I missing something?
>
> have a day,
> Sasa
>
> Sasa Brcerevic
> --------------------------------
> Technology Partners Group
> Office: (02) 4925 1535
> Mobile : 0416 297 442
> mail : sasha@tpg.au.com
> web : www.tpg.au.com
>
>
> -----Original Message-----
> From: Danno Ferrin [mailto:shemnon@earthlink.net]
> Sent: Friday, 14 January 2000 11:47
> To: tomcat-dev@jakarta.apache.org; sasha@tpg.au.com
> Subject: Re: Classpath to JSP
>
>
> Actually there is a better solution.  Just drop the jar in
.../WEB-INF/lib/
> (make lib if you need it) and the servlet engine is supposed to expose it
to
> the classloader used by that context.
>
> --Danno
>
> "Sasa Brcerevic" wrote:
> > If you are talking about making a class be available to you (in your
> > classpath) from within the tomcat's run-time, you need to edit the
tomcat
> > start files and append the path to the classes you want to have
available.
> > Then re-start tomcat and it should work.
> >
> > have a day,
> > Sasa
> >
> > Sasa Brcerevic
> > --------------------------------
> > Technology Partners Group
> > Office: (02) 4925 1535
> > Mobile : 0416 297 442
> > mail : sasha@tpg.au.com
> > web : www.tpg.au.com
> >
> >
> > -----Original Message-----
> > From: aloyola [mailto:aloyola]On Behalf Of Affonso Loyola
> > Sent: Friday, 14 January 2000 10:00
> > To: tomcat-dev@jakarta.apache.org
> > Subject: Classpath to JSP
> >
> >
> > How can I and jar files to my JSPs
> >
> > For example the classes111.zip (Oracle JDBC Driver)
> >
> > Its something in the WEB-INF of the context?
> >
> > Affonso Loyola
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
> >
> >
> >
>
>
> --------------------------------------------------------------------------
--
> ----
>
>
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>
>
>


----------------------------------------------------------------------------
----


> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


RE: Classpath to JSP

Posted by Sasa Brcerevic <sa...@tpg.au.com>.
sure if the library is application specific, but what if we want a system
resource (like the DB driver) which is going to be used by a number of
applications? I also consider editing the start scripts ugly, but could not
find anything more appropriate - am I missing something?

have a day,
	Sasa

Sasa Brcerevic
--------------------------------
Technology Partners Group
Office: (02) 4925 1535
Mobile : 0416 297 442
mail : sasha@tpg.au.com
web : www.tpg.au.com


-----Original Message-----
From: Danno Ferrin [mailto:shemnon@earthlink.net]
Sent: Friday, 14 January 2000 11:47
To: tomcat-dev@jakarta.apache.org; sasha@tpg.au.com
Subject: Re: Classpath to JSP


Actually there is a better solution.  Just drop the jar in .../WEB-INF/lib/
(make lib if you need it) and the servlet engine is supposed to expose it to
the classloader used by that context.

--Danno

"Sasa Brcerevic" wrote:
> If you are talking about making a class be available to you (in your
> classpath) from within the tomcat's run-time, you need to edit the tomcat
> start files and append the path to the classes you want to have available.
> Then re-start tomcat and it should work.
>
> have a day,
> Sasa
>
> Sasa Brcerevic
> --------------------------------
> Technology Partners Group
> Office: (02) 4925 1535
> Mobile : 0416 297 442
> mail : sasha@tpg.au.com
> web : www.tpg.au.com
>
>
> -----Original Message-----
> From: aloyola [mailto:aloyola]On Behalf Of Affonso Loyola
> Sent: Friday, 14 January 2000 10:00
> To: tomcat-dev@jakarta.apache.org
> Subject: Classpath to JSP
>
>
> How can I and jar files to my JSPs
>
> For example the classes111.zip (Oracle JDBC Driver)
>
> Its something in the WEB-INF of the context?
>
> Affonso Loyola
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>
>
>


----------------------------------------------------------------------------
----


> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Classpath for IBM 1.1.8 JVM

Posted by Youngho Cho <yo...@nannet.co.kr>.
Hi,

I installed Tomcat sucessfully in my Linux system.
It is great!.

In order to send a message from servlet to JSP
I used
    request.setAttribute ("servletName", "servletToJsp");

getServletConfig().getServletContext().getRequestDispatcher("/jsp/jsptoserv/
hello.jsp").forward(request, response);

method as a sample code.

But it makes a compile error.

How do I set the classpath for additional jar files to compile the servlet
code successfully in the 1.1.8 environment ??

Thanks

youngho


Re: Classpath to JSP

Posted by Danno Ferrin <sh...@earthlink.net>.
Actually there is a better solution.  Just drop the jar in .../WEB-INF/lib/
(make lib if you need it) and the servlet engine is supposed to expose it to
the classloader used by that context.

--Danno

"Sasa Brcerevic" wrote:
> If you are talking about making a class be available to you (in your
> classpath) from within the tomcat's run-time, you need to edit the tomcat
> start files and append the path to the classes you want to have available.
> Then re-start tomcat and it should work.
>
> have a day,
> Sasa
>
> Sasa Brcerevic
> --------------------------------
> Technology Partners Group
> Office: (02) 4925 1535
> Mobile : 0416 297 442
> mail : sasha@tpg.au.com
> web : www.tpg.au.com
>
>
> -----Original Message-----
> From: aloyola [mailto:aloyola]On Behalf Of Affonso Loyola
> Sent: Friday, 14 January 2000 10:00
> To: tomcat-dev@jakarta.apache.org
> Subject: Classpath to JSP
>
>
> How can I and jar files to my JSPs
>
> For example the classes111.zip (Oracle JDBC Driver)
>
> Its something in the WEB-INF of the context?
>
> Affonso Loyola
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>
>
>


----------------------------------------------------------------------------
----


> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


RE: Classpath to JSP

Posted by Sasa Brcerevic <sa...@tpg.au.com>.
If you are talking about making a class be available to you (in your
classpath) from within the tomcat's run-time, you need to edit the tomcat
start files and append the path to the classes you want to have available.
Then re-start tomcat and it should work.

have a day,
	Sasa

Sasa Brcerevic
--------------------------------
Technology Partners Group
Office: (02) 4925 1535
Mobile : 0416 297 442
mail : sasha@tpg.au.com
web : www.tpg.au.com


-----Original Message-----
From: aloyola [mailto:aloyola]On Behalf Of Affonso Loyola
Sent: Friday, 14 January 2000 10:00
To: tomcat-dev@jakarta.apache.org
Subject: Classpath to JSP


How can I and jar files to my JSPs

For example the classes111.zip (Oracle JDBC Driver)

Its something in the WEB-INF of the context?

Affonso Loyola

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org