The bean goes into the WEB-INF/classes directory (if its a class) or into
WEB-INF/lib if it's a jar.
Even if you have an application you don't need to change your HREFs you can
still use relative paths,
Kevin Jones
DevelopMentor
www.develop.com
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Tom Ritchford
> Sent: 21 August 2000 23:01
> To: [EMAIL PROTECTED]
> Subject: classpath to beans in a virtual domain?
>
>
> This should be an FAQ but I've spent all day attempting to do something
> that ought to be trivial with no results.
>
>
> I am running a server with numerous virtual domains using the most
> recent release of Apache/Tomcat/Jakarta.
>
> I have a very simple .jsp file at the top-level of one of the virtual
> domains, <http://cliktrik.com/index.jsp>.
>
>
>
> It works perfectly well.
>
>
> Now, all I want to do is to be able to add a bean that I've written
> to this JSP page. However, for the life of me I can't figure out where
> to put the .class or .jar file containing the compiled bean so that
> the .jsp file be compiled and then can instantiate the bean at runtime.
>
>
> Reading the Tomcat "documentation" leads me to believe that I have to
> deploy an entire new webapp in order to add a single class file.
>
> This doesn't seem to be the correct solution for the following reasons:
>
> -- this would seem to force me to change all my URLs to start with the
> name of the webapp, so all my URLs would look like, say
> <http://cliktrik.com/cliktrik/index.jsp>
>
> Having to change all my URLs (for the worse, too!) to link in a
> single .class file seems rather inelegant.
>
>
> -- truth to tell, I'm even unable to figure out how to deploy a webapp
> into a virtual domain. I've been able to deploy them for the root
> domain (see eg <http://editev.com/servlet/chess>,
> <http://editev.com/servlet/chess?refresh=0>,
> <http://editev.com/chess>)
> but have been unable to use Tomcat or Apache's "documentation"
> to figure out how to get any further.
>
>
> (I had a little success playing with the
> /home/jakarta-tomcat/work_cliktrik/localhost_8080
> directory -- at least the .jsp file would find the definition of the
> bean. But I could
> never instantiate the bean.
>
> (I don't anyway believe that this directory should contain
> anything other than
> temporary files.)
>
>
> Any help would be MUCH appreciated -- I've spent an awful long
> time on this
> apparently simple problem.
>
> /t
>
>
>
>
> ...electronic a capella madness <http://volectrix.com>.........
> ...extreme internet radio <http://extremeNY.com/radio>...
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> 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".
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