• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Chinmaya Chowdary
Ranch Hand
Posts: 434
  • 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