my dog learned polymorphism*
The moose likes Other Application Frameworks and the fly likes FrontMan Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "FrontMan Question" Watch "FrontMan Question" New topic
Author

FrontMan Question

Michael Lynch
Greenhorn

Joined: Dec 21, 2011
Posts: 5
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

Joined: Jan 10, 2002
Posts: 61654
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Michael Lynch
Greenhorn

Joined: Dec 21, 2011
Posts: 5
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

Joined: Jan 10, 2002
Posts: 61654
    
  67

Thanks, Michael!
 
jQuery in Action, 2nd edition
 
subject: FrontMan Question