Solved

working with beans

Posted on 2002-04-21
3
248 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
  • 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
We have come a long way with backup and data protection — from backing up to floppies, external drives, CDs, Blu-ray, flash drives, SSD drives, and now to the cloud.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

707 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now