This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes JSP and the fly likes Custom Tag BodyContent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Custom Tag BodyContent" Watch "Custom Tag BodyContent" New topic
Author

Custom Tag BodyContent

Radhakrishna Bhat
Greenhorn

Joined: Dec 26, 2007
Posts: 10
I have a doubt. In <jsp:useBean> body-content we can use scriptlets.
But i believe usebean is also a custom tag and i have heard scripting inside the custom tags is not valid.?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63232
    
  69

It depends upon the type of custom tag and how it is declared.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Radhakrishna Bhat
Greenhorn

Joined: Dec 26, 2007
Posts: 10
Ok. But the body-content of a custom tag is JspFragment right? (After translation). i guess JspFragment cant have scripting code inside them
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63232
    
  69

Only for JSP 2.0 simple tags and for tag files (which are implemented using simple tags). Classic tags can continue to employ scriptlets (if you must ).
Radhakrishna Bhat
Greenhorn

Joined: Dec 26, 2007
Posts: 10
Oh i dint know it was only for classic tags..

Thanks
 
Have you checked out Aspose?
 
subject: Custom Tag BodyContent
 
It's not a secret anymore!