JSP newbie - <jsp:useBean > question

Z

zalek

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?

Thanks,

Zalek
 
M

mich

zalek said:
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?

Thanks,

Zalek

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.
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

jsp:useBean 0
Unbalanced tag 0
JSP 0
Unbalanced tag 0
End tag is unbalanced 0
Unbalance end tag 0
jsp and usebeans 1
jsp:useBean with possibly omitted beans. 0

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top