Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is the scriptlet illegal for simple Tag even if the body-content is set to tagdepende

 
tiim fei
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the scriptlet illegal for simple Tag even if the body-content is set to tagdependent ?

I understand that if the body-content set as JSP, then container will create a JspFragment object to us, while it not support scriptlet.
But what if the body-content set to tagdependent ? what whill happen ?

Thank you!
 
shiva viswanathan
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tiim ,

If the body-content is set to tagdependent then scriptlets are not valid
As per HFSJ , tagdependent can include EL expressions and template text but not scritlets

Hope this helps
 
AmitKumar Jain
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But if you include EL Expressions in case of tagdependent, they will NOT be evaluated.. tagdependent implies everying in the body content will be taken as text be it anything.. I say this from HeadFirst book
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic