April 19th, 2002, 09:49 AM
packages, directories, and confusion
I'm using JSP files and beans. I'm currently trying to test out an application I made a long time ago on a pre-existing website.
I DON'T want my test application to clutter or interfere with the current website's operation.
So I put it's JSP files in a higher directory from my root.
The normal site's JSP files are here: ROOT
My test JSP files are here: ROOT/TEST
However, this is causing major headaches. My application server now thinks that any beans I call from "ROOT/TEST" should be in the package "TEST". So if I call a bean using this line of code:
<jsp:useBean id="order" scope="session" class="OrderForm" />
The application server thinks I want to use the bean "TEST.OrderForm", simply because my JSPs reside in the "ROOT/TEST" directory.
Is there any way to get around this? Can I make my JSPs look for my beans in my standard WEB-INF directory without adding this TEST package? Or am I simply going to have to manually go into EVERY SINGLE class file I have and manually change the package????
April 20th, 2002, 10:46 PM
u can include the classpath (path where the beans exists) in ur webserver...this will solve ur problem...
April 20th, 2002, 10:50 PM
That would work for my localhost server, but not for my production server. My production server is in a shared environment. Unfortunately I don't have access to such things.
April 20th, 2002, 11:23 PM
thats was the best solution...never mind...c if there is ne option in jsp to give classpath along with the bean....
April 20th, 2002, 11:34 PM