Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

working with beans

Posted on 2002-04-21
3
Medium Priority
?
255 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 50 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Steps to fix error: “Couldn’t mount the database that you specified. Specified database: HU-DB; Error code: An Active Manager operation fail”
How to fix a SonicWall Gateway Anti-Virus firewall blocking automatic updates to apps like Windows, Adobe, Symantec, etc.
Integration Management Part 2
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

885 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