aspose file tools*
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
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: 60057
    
  65

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: 60057
    
  65

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Custom Tag BodyContent
 
Similar Threads
Doubt in Custom tag developement
nested custom tags
Using JSTL forEach with a custom tag
Struts Tag inside a Custom Tag
How to create object and call a method in jsp using struts 2 tags