• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JspFragment

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

(a) As Per Page512,Ch 10 HFSJ , JspFragment can not have scriptlets .
I think JspFragment is nothng but all that is present inside custom tag


(b) I think I can write scriptlets inside a custom tag if I declare in the TLD as

<tag>
<name>fun>
<body-content>JSP</body-content>
</tag>


Both (a) and (b) are contradicting with each other. Can anybody explain what I am missing .

Thanks
Akhil
 
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

A JspFragment is use like tag body for simple tags (SimpleTag interface). The SimpleTags accept like body only : empty, scriptless, tagdependent. The only one Tags which accept the JSP are the Classic Tags (Tag, TagIterator and TadBody inrterface).

Regards,
M
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic