JSP newbie - <jsp:useBean > question

Discussion in 'Java' started by zalek, Aug 23, 2008.

  1. zalek

    zalek Guest

    I am writing an application that will use the same bean on different
    JSP pages. The scope of this bean is session.
    Do I need on each JSP page code <jsp:useBean id=...scope="session"> or
    it is enough to code it only on the first page?


    zalek, Aug 23, 2008
    1. Advertisements

  2. zalek

    mich Guest

    I would code it on every page; at least that is how I learned it. As well,
    how do you really know what will be the first page? People can bookmark
    different pages and then jump to them first.
    mich, Aug 23, 2008
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.