Solved

working with beans

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
There's a lot of hype surrounding blockchain technology. Here's how it works and some of the novel ways it' s now being used - including for data protection.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

830 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