File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes beans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "beans" Watch "beans" New topic


Nelson Nadal
Ranch Hand

Joined: Jun 06, 2002
Posts: 170
Is it ok to have a 2 or more view bean at the same time?
for ex. I have a jsp page w/ 2 include pages...
that included pages has its own view beans...
is that ok or will they conflict if the other one's scope is
'session' while the other one is only 'request'
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63544

As long as each id is unique within its scope, you can have as many beans as makes sense.

[Asking smart questions] [About Bear] [Books by Bear]
jQuery in Action, 3rd edition
subject: beans
It's not a secret anymore!