• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jsp:useBean help is required

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
 
When it is used for evil, then watch out! When it is used for good, then things are much nicer. Like this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic