Need help understanding using data types with session.setAttribute & session.getAttribute
Posted on 2004-08-27
I'm learning jsp slowly and painfully so please forgive my newbie question...
In one page I'm trying to set a session variable. The second line here blows up.
'<% char schoolMode=''a'';
session.setAttribute("schMode", schMode); %>
And in another I try to access the variable and it blows up as well.
<% char schMode=(char)session.getAttribute("schMode"); %>
Thanks a bunch.