This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

custom tag Qz

 
liqiang yang
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Can I use any JSP code in the body of custom tags (Simple or Classic).
My answer is that I can NOT. right?

But how about in the TLD file? Why there is a <body-content>JSP</body-content> element can be over there? They are conflict. It makes me really confused. Anyone can help me out? Big thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65659
129
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please use real words when posting to the forums. Abbreviations such as "Qz" in place of "questions" only serve to make your posts more difficult to read and less likely to generate useful responses.

Please read this for more information.

thanks,
bear
JavaRanch sheriff
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65659
129
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by liqiang yang:
My answer is that I can NOT. right?

Not right.

Please read Section 7 of the JSP Spec for details on when JSP notation can be used in custom tags and when it cannot.
[ May 13, 2008: Message edited by: Bear Bibeault ]
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!