Two Laptop Bag*
The moose likes Servlets and the fly likes jsp/javabean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "jsp/javabean" Watch "jsp/javabean" New topic


Donna Reschke

Joined: Jun 20, 2001
Posts: 17
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.
david, chen

Joined: Jan 18, 2001
Posts: 15
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.
I agree. Here's the link:
subject: jsp/javabean
Similar Threads
how many instances of java bean in jsp?
Load html frame from javabean
JavaBeans and Servlets
Help: Wrox Profession SCWCD - don't understand
calling functions in jsp