Solved

working with beans

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Getting to know the threat landscape in which DDoS has evolved, and making the right choice to get ourselves geared up to defend against  DDoS attacks effectively. Get the necessary preparation works done and focus on Doing the First Things Right.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

623 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