• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

<c:set>

 
amarkirt saroay
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If <c:set var="userlevel" scope="session">
Sherif,Bartender,Cowgirl
</c:set>

Now if userLevel does not exist in the session,then what is the datatype of the new created session attribute "userLevel" ? Will it be a String array?


 
Chinmaya Chowdary
Ranch Hand
Posts: 432
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Amarkirt. If we don't specify session, the default will be page. It will work like session.setAttribute("userLevel", "Sherif,Bartender,Cowgirl "). No string array.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic