You can put the jar in WEB-INF/lib, but to use the classes in a JSP,
you have to import them in the <page> element: 

<%@ page
    import="my.package.*, my.package.util.*"
%>

--- "Drinkwater, GJ  (Glen)" <[EMAIL PROTECTED]> wrote:
> I have written some java classes to help my servlet/jsp
> configuration.  But
> the problem is that i want them to be accessable to my servlet and my
> jsp.
> i have jar the file and put them in the web-inf/lib folder and also
> in the
> java_home/jre/lib/ext folder.  The servlets pick up the classes
> automatically but the jsp cannot 'see' them.  
> 
> can anybody help.  Do i have to add a package to the classes before i
> jar
> them and then access then vis jsp with the package name in th eimport
> header.
> 
> The only way at the moment i have suceeded is to put the classes in
> the
> java_home/jre/classes folder and call them when needed but i would
> particularly like them to be in the lib folder of the application for
> portability.
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 


__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to