Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Using (jsp:useBean id="myBeanId") with multiple logins  RSS feed

 
Ezra Exposito
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on a system that was originally created to allow one
session per user. Now the users want to have multiple sessions running so they can compare data and reports. The problem is
that with the existing jsp pages the beans with override each
other and cause a nightmare.
Is there a way to use (jsp:useBean id="myBeanId") such that
myBeanId can be a variable set at runtime? This way each login
can have its own bean.
Are there some good designs I can follow for handling this ?
Thanks,
E.E.
 
Cameron Park
Ranch Hand
Posts: 371
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can put beans in each session object so each session will have its own beans. But I don't think you can have multiple sessions because tomcat dropped that for security reasons.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!