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

Simple Tag support - Expressions and scriplets

 
Ranjit Jana
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys ,

This query is to ask if we can have expression and scriptlet inside a simpleTag . ( If the body-content can be JSP for this tag). If we want to have expression<%= %> or scriptlet <% %> in the SimpleTag can there be a hack . Why is that in SimpleTag we have stopped having expression and scriptlet. What is the disadvantage of having these in Simple tag.

Regards,
Ranajit Jana
 
Ranjit Jana
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think i got the answer for this


<body-content> cannot be specified as JSP in case of simpleTagSupport.

thus it cannot have any JSP element


Ranajit
 
Ranjit Jana
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
above answer is wrong . I scanned through earlier messages . the value of
<body-content> should be scriptless for SimpleTagSupport.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic