This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes jsp:useBean help is required Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp:useBean help is required" Watch "jsp:useBean help is required" New topic
Author

jsp:useBean help is required

Tahir Ehsan
Greenhorn

Joined: Apr 18, 2006
Posts: 9
Hi
I need help in jsp and javabean.
Basically I am making a database connection in javabean (DbBean).
And accessing this connection(DbBean) in jsp file(Login.jsp).
This Login.jsp file is in Tomcat\webapps\Root\myfile Folder.
And DbBean file is in Tomcat\webapps\Root\WEB-INF\classes Folder.
If I put Login.jsp file in Tomcat\webapps\Root Folder. Then the code
execute correctly. But when I put Login.jsp file in myfile folder, then generate message "class not found."
Now I want to ask what path should I mention here when I use Login.jsp file in myfile folder
<jsp:useBean id="db" scope="request" class="DbBean">
Or I have to make some correction in DbBean.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

See:
http://faq.javaranch.com/view?BeansNotFound


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
 
subject: jsp:useBean help is required
 
Similar Threads
tomcat and jsp
Directory Structure
class property of a javabean
java path problem by suwandy
Need help for JSP to call C API using JNI