Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

jsp:Tomcat useBean will not work

Options
  • 26-11-2007 11:05pm
    #1
    Closed Accounts Posts: 192 ✭✭


    Hi,

    Everytime I try to run my file in Tomcat via localhost, I get the following error;

    org.apache.jasper.JasperException: /guestBookLogin.jsp(11,2) The value for the useBean class attribute com.deitel.jhtp6.jsp.beans.GuestBean is invalid.
    org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)

    Code :

    <jsp:useBean id = "guest" scope = "page"
    class = "com.deitel.jhtp6.jsp.beans.GuestBean" />
    <jsp:useBean id = "guestData" scope = "request"
    class = "com.deitel.jhtp6.jsp.beans.GuestDataBean" />

    Environments set; CLASSPATH: =.;C:\apache-tomcat-6.0.14\lib\servlet-api.jar;C:\apache-tomcat-6.0.14\lib\jsp-api.jar;C:\apache-tomcat-6.0.14\lib\el-api.jar;C:\Servlets+JSP;..;..\..

    Other jsp files work fine just not useBean,,

    Please help.

    Justin


Comments

  • Closed Accounts Posts: 192 ✭✭jtiernan


    Sorted... didnt realise I needed a WEB-INF folder as well :D


Advertisement