Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp:useBean help is required  RSS feed

Tahir Ehsan
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!