Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Why <c:set var=..></c:set> will not accepts <jsp:attribute> inside the body  RSS feed

 
Chinmaya Chowdary
Ranch Hand
Posts: 437
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, the correct type is <jsp:attribute name="value">${userName}</jsp:attribute>. In 'name' attribute we must specify the attribute name of the parent tag.(in this case <c:set var="id" value=...>). Works for <c:set target=...>version also.The same is true for custom tags. Thankyou.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!