• Post Reply Bookmark Topic Watch Topic
  • New Topic

Setting a Boolean SessionScope Variable

 
DeAlton Jones
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all!

I know that this must be a simple question. How can you set a boolean
SessionScope variable in a backerbean.
The code below



this is the error description from my problem console

The method put(Object, Object) in the type Map is not applicable for the arguments (String, boolean)

Any Ideas would be great!!!

I am using RAD ide.
 
mark Sels
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hellooooo! That is java101 Alls you gotta do is: getSessionScope().put("Super",Boolean.TRUE); Try it and let me know.
 
DeAlton Jones
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks

I guess when attempting to pass a primitive where an Object needs to be i need to be more careful.

JAVA101 are you kidding??
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!