Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old April 19th, 2002, 09:49 AM
Trevarthan Trevarthan is offline
Web Developer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Location: Tennessee
Posts: 4 Trevarthan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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...

Reply With Quote
  #2  
Old April 20th, 2002, 10:46 PM
aabha aabha is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Location: India
Posts: 7 aabha User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to aabha
u can include the classpath (path where the beans exists) in ur webserver...this will solve ur problem...

Reply With Quote
  #3  
Old April 20th, 2002, 10:50 PM
Trevarthan Trevarthan is offline
Web Developer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Location: Tennessee
Posts: 4 Trevarthan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #4  
Old April 20th, 2002, 11:23 PM
aabha aabha is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Location: India
Posts: 7 aabha User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to aabha
thats was the best solution...never mind...c if there is ne option in jsp to give classpath along with the bean....

best wishes...

Reply With Quote
  #5  
Old April 20th, 2002, 11:34 PM
Trevarthan Trevarthan is offline
Web Developer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Location: Tennessee
Posts: 4 Trevarthan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks! I'll do that.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > packages, directories, and confusion


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway