Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in jsp:attribute

 
Srividhya Kiran
Ranch Hand
Posts: 166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ranchers

I have doubt in custom tag handler. I am going through HFSJ book. In chapter 9 its given that even if the <body-content>empty</body-content> we can have <jsp:attribute> but I am getting an error saying this tag cannot include body content and missing required attribute "user".

test.tld:


index.jsp:


Thanks
Srividhya
 
Jan Sterk
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Note that you have one '>' too much in the attribute closing tag. Dunno if that's the cause..
 
Ganesh Dhakshinamurthy
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The extra '>' is considered as a body content and the EL ${username} evaluates to null. I guess this is the reason you are getting the error.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic