File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Elasticsearch in Action this week in the Big Data forum!
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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: tagdependent body content