• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

<c:set > - Doubt

 
Dinesh Andavar
Greenhorn
Posts: 12
  • 0
  • 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
Pie
Posts: 3228
12
Android Java
  • 0
  • 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: 64205
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does the JSTL Specification have to say on the matter?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic