Solved

working with beans

Posted on 2002-04-21
3
252 Views
Last Modified: 2010-04-01
hi,
i have installed oracle8i 8.1.7 with its apache Jserv for running jsp pages.

i have configured the htpd.conf file to my desired jsp pages location. and jsp pages are working properly now.

but i have a problem with working with beans, whenever i use a bean it says that it couldn't find the bean class.

where should i put the bean classes ? or from where should i configure the beans classes path ?
0
Comment
Question by:kanary
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
coreyit earned 25 total points
ID: 6958453
The servlet engine should find your classes if you place them in [your web root]/WEB-INF/classes/

Likewise, jar files should go in [your web root]/WEB-INF/lib/

Then, in your JSPs, be sure to include the package names when using your beans (accomplished most easily by importing it in the page directive).

-corey
0
 
LVL 2

Expert Comment

by:coreyit
ID: 6960707
"C" ?

ouch! why that poor? I'd be happy to contribute more help if that didn't cover it.

-corey
0
 
LVL 7

Author Comment

by:kanary
ID: 6961457
hi corey

i know that u should put the classes in web-inf folder, but i had to put my jsps in the root directory.:(

explanation:
suppose my default directory is "c:\ams"
if i have a jsp page that accesses a bean called "testbean" i can use the class="testbean" to access the testbean in the directory "c:\ams\web-inf\classes".
but, if i have a jsp page located in "c:\ams\one" i couldn't be able to access the testbean class even when i used class="../testbean"
did u got me ?
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Configuring Remote Assistance for use with SCCM
We asked our MSP customer base what their favorite tools were and how they help them serve clients. We focused our questions on favorite tools in the following categories: >PSA tools >RMM tools >Alert management tools >Communication tools and Mo…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question