Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Custom Tag BodyContent

 
Radhakrishna Bhat
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64970
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It depends upon the type of custom tag and how it is declared.
 
Radhakrishna Bhat
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64970
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh i dint know it was only for classic tags..

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic