Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

<c:set > - Doubt

 
Dinesh Andavar
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I read that when setting attributes using <c:set var ="attributeName" value = "attributeValue"> it deletes the attribute if the value is NULL.
My question is if i donot give a scope it first looks in the page Scope. Assume the attributeValue is NULL. It deletes the attribute from the Page Scope
What about other scopes. What will it do if there are attributes with same name in other scopes like request, session and application?
Will they be deleted too??
 
K. Tsang
Bartender
Posts: 3502
14
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To my understanding, the <c:set> tag default scope is "page". There is a scope attribute. Unless you specific this attribute, you are only accessing the page scope's variables.

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65115
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does the JSTL Specification have to say on the matter?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic