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

tagdependent body content

 
Veena Pointi
Ranch Hand
Posts: 442
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
customTagTestBean.jsp



Request uri is http://localhost/ch9/customTagTestBean.jsp?userName=Krishna

Question 1
Given Body content tagdependent in tld,in the above code it was suppose to print ${userName},isn't it ?Because for body content tagdependent in HFSJ it says "The tag body is treated as plain text,so the EL is NOT evaluated and tags/actions are not triggered".But EL is getting evaluated .It displays Hello Krishna.


Question 2
Given Body content value "JSP",it throws following error
The TLD for the class foo.AdvisorTagHandler specifies an invalid body-content (JSP) for a SimpleTag.

Can anybody please clarify above questions?

Thanks
Veena
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answer to Question 2 is explained in this FAQ.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
About question 1, you'll have to show us your tag class, and your tld as well.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic