beans in jsp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shreya
    New Member
    • Sep 2006
    • 17

    #1

    beans in jsp

    i am new to beans in jsp.
    I used the .class (UserData.class )in new jsp
    In my jsp i have written
    <jsp:useBean id="user" class="UserData " scope="session" />
    but when i compile it cannot resolve the symbol UserData
    I think the path is not set

    How to set the path.I am using Tomcat 5.5 bundled in net beans.

    Pls help
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by shreya
    i am new to beans in jsp.
    I used the .class (UserData.class )in new jsp
    In my jsp i have written
    <jsp:useBean id="user" class="UserData " scope="session" />
    but when i compile it cannot resolve the symbol UserData
    I think the path is not set

    How to set the path.I am using Tomcat 5.5 bundled in net beans.

    Pls help
    Note that UserData class needs to be imported into the JSP page.
    Code:
    <jsp:directive.page import="UserData"/>

    Also, the class file needs to be copied to the .\web-inf\classes directory.

    Comment

    Working...