Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes JSP and the fly likes JSP Fragment and  body-content Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP Fragment and  body-content" Watch "JSP Fragment and  body-content" New topic

JSP Fragment and body-content

Deepan Devadasan
Ranch Hand

Joined: Jan 25, 2007
Posts: 226
Hi folks..

I know this was talked about recently as well..
Though i also followed it, i still have problems in the area..

HFSJ also provides inadequate coverage on the area...

In Tag file(.tag ones) we cant put this-- <%@tag body-content="JSP"%>

But Simple tags (that extend SimpleTagSupport) can have anything as its body content...

And we know setJspBody(JspFragment) takes a JspFragment with encapsulates the body stuff withing the tag's body when used in JSPs...

But HFSJ says JspFragment shouldn't have scripting within...

Can someone please a give a explanation so that I can better understand the area..

Theepan Thevathasan
SCJP 1.4, SCWCD 1.4, SCMAD 1.0 SCBCD 1.3, MCP(.Net Frm 2.0 App Dev Fdn)
It is sorta covered in the JavaRanch Style Guide.
subject: JSP Fragment and body-content