• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

custom tag body-content and variable content

 
Scott Bown
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all, I've just been using some SelfTest software for the SCWCD, and a bemusing question came up, which the answer explanation doesn't make sense to me.

If you declare in a .tld that a tag's <body-content>scriptless</body-content>, then it means that the body content of the tag can be EL, standard actions, other custom tags and JSTL but not any kind of scriptlets or scripting expressions. so far so good...

<book id=<%=request.getParameter("id")%>"></book>

However the answer states that when scripting is not permitted, the value of the variable(shown above) cannot be accessed in a scriptlet or a scripting expression.

Since when does defining the body-content affect what you can pass as variables to a tag?? I though the <rtexprvalue> tag defined what was allow in a variable.

Confused?

Thanks.

Scott
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic