aspose file tools*
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
Author

tagdependent body content

Veena Pointi
Ranch Hand

Joined: Jun 20, 2002
Posts: 442
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


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

Joined: Nov 24, 2005
Posts: 14688
    
  16

The answer to Question 2 is explained in this FAQ.


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

Joined: Nov 24, 2005
Posts: 14688
    
  16

About question 1, you'll have to show us your tag class, and your tld as well.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tagdependent body content