• 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.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!