aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "<c:set>" Watch "<c:set>" New topic
Author

<c:set>

amarkirt saroay
Ranch Hand

Joined: Mar 16, 2008
Posts: 167
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?



SCJP-75%
SCWCD-82%
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: <c:set>