The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes <c:set> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "<c:set>" Watch "<c:set>" New topic


amarkirt saroay
Ranch Hand

Joined: Mar 16, 2008
Posts: 167
If <c:set var="userlevel" scope="session">

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

Joined: Apr 21, 2008
Posts: 432
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.
I agree. Here's the link:
subject: <c:set>
jQuery in Action, 3rd edition