Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp:useBean doubt

 
James Mark
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The actions performed in a jsp:useBean action are:
1. An attempt to locate an object based on the attribute values id and scope. The
inspection is done synchronized per scope namespace to avoid non-deterministic
behavior
.

If the scope is not specified jsp:useBean will search only in pageScope to find the Bean,not in the other scopes.is it true?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the scope is not specified jsp:useBean will search only in pageScope to find the Bean,not in the other scopes

Yes. If you don't define the scope explicitly, it will default to "page".
 
James Mark
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Christophe Verre
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic