Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Setting a Boolean SessionScope Variable  RSS feed

 
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??
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!