Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Mixing Scripting Variables and Local Scopes in JSP  RSS feed

Milano Doshi
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am using scripting elements (in JSP )to create objects that I then want to let actions access, I want to place them in the appropriate scope, which I am doing as under:

userInfo = new Member1();
pageContext.setAttribute("userInfo", userInfo);
<jsp:getProperty name="userInfo"
property="firstName" />

I want to ask the following qtns:
1) What will be the scope of this Object userInfo?
2) If a bean object with the same name already exists, what will
All suggestion\answers are welcome,

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!