Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp/javabean

 
Donna Reschke
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have three jsp using the same javabean. I thought an update from one pages will be
easily accessed by another pages. I was wrong. When I try to access the value
(jp.getUserID) that a previous jsp has just updated, the method return a null value.
Help!
 
david, chen
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may not set "scope" attribute of jsp:userBean correctly. Because the default value is "page". So, please try set your scope attribute as "session". It may help.
David
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic