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:
  #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



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

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





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT