This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Question about c:set var Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Question about c:set var" Watch "Question about c:set var" New topic

Question about c:set var

Janna Voss

Joined: Nov 09, 2004
Posts: 8
Does <c:set var ...> place a *String* in specified scope, or does it place an *Object* in the scope? In other words, is it a parameter, or an attribute?

If this places an object in the specified scope, how does the JSP know the object type? Can it be a JavaBean object that I've previously created?

Gopal Bairwa

Joined: Oct 05, 2004
Posts: 2
It places an attribute not parameter. The type is the type what you use while setting the value.
subject: Question about c:set var
Similar Threads
jstl ..c:set
What if the value is null and the var does not exist in the particular scope for c : set?
"target" version of c:set
Confusion about "scope" attribute
doubt in JSTL set tag