It's not a secret anymore!
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes tagdependent body content Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "tagdependent body content" Watch "tagdependent body content" New topic

tagdependent body content

Veena Pointi
Ranch Hand

Joined: Jun 20, 2002
Posts: 442

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?


"Continuous effort - not strength or intelligence - is the key to unlocking our potential."
*Winston Churchill
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

The answer to Question 2 is explained in this FAQ.

[My Blog]
All roads lead to JavaRanch
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

About question 1, you'll have to show us your tag class, and your tld as well.
I agree. Here's the link:
subject: tagdependent body content
jQuery in Action, 3rd edition