wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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.
 
 
subject: <c:set>
 
Similar Threads
HFSJ pg 445 c:set
<c:set> tag
JSTL doubt
c:set
getting variable value