how to use java bean in jsp

Discussions

Web tier: servlets, JSP, Web frameworks: how to use java bean in jsp

  1. how to use java bean in jsp (1 messages)

    can i run jsp in javawebserver and then how? how to use java bean in jsp... any one help me
  2. how to use java bean in jsp[ Go to top ]

    Yes. You can use Java Web Server to run your jsp.
    You can call your jsp thru an html page which can be run using htp://localhost:8080/<your html page>

    You can use a java bean in jsp using the following syntax at the starting of jsp file.

    <jsp:useBean id="<package name>" scope="session" class="<package.bean name>" type="<package.bean name>"/>

    Hope this answers your question!