Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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

FrontMan Question

 
Michael Lynch
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's what is likely a stupid question from a novice web developer using Bear Bibeault's Front Man...

What's the difference between CommandContext.setScopedVariable(...) and HttpServletRequest.setAttribute(...) ?

Are ScopedVariables and Attributes different?

Thanks!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65105
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
None. It's just a convenience method that uses modern nomenclature, and lets you add a scoped variable to any scope from a single method.
 
Michael Lynch
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thought that was the case, but my simpleton mind needed clarification. Thanks for the tip! Still figuring out how to put this whole application together, but your library seems pretty slick to me. I really appreciate your efforts!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65105
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Michael!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic