A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
JSF
Author
Setting a Boolean SessionScope Variable
DeAlton Jones
Greenhorn
Joined: Apr 04, 2006
Posts: 22
posted
Nov 16, 2006 08:40:00
0
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
getSessionScope().put("Super",true);
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.
Bauke Scholtz
Ranch Hand
Joined: Oct 08, 2006
Posts: 2458
posted
Nov 16, 2006 12:26:00
0
Use Boolean instead.
getSessionScope().put("Super", Boolean.TRUE);
Code depot of a Java EE / JSF developer
|
JSF / Eclipse / Tomcat kickoff tutorial
|
DAO kickoff tutorial
|
I ♥ Unicode
I agree. Here's the link:
http://aspose.com/file-tools
subject: Setting a Boolean SessionScope Variable
Similar Threads
Using EL to get a session attribute, how to?
Setting a Boolean SessionScope Variable
how to get sessionscope boolean varible
Session Variable and JSTL
write jsp code in c:when tag
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter