|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
packages, directories, and confusion
Howdy.
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???? Thanks... |
|
#2
|
|||
|
|||
|
u can include the classpath (path where the beans exists) in ur webserver...this will solve ur problem...
|
|
#3
|
|||
|
|||
|
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.
|
|
#4
|
|||
|
|||
|
thats was the best solution...never mind...c if there is ne option in jsp to give classpath along with the bean....
best wishes... |
|
#5
|
|||
|
|||
|
Thanks! I'll do that.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > packages, directories, and confusion |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|