Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Question about TLD and variable  RSS feed

 
Oliver Rensen
Ranch Hand
Posts: 109
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ranchers,

when I declare an attribute and a variable within the TLD like followed:

<tag>
<attribute>
<name>testname</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>

<variable>
<name-from-attribute>testname</name-from-attribute>
<scope>AT_BEGIN</scope>
</variable>
</tag>

How can I access the variable testname in the JSP?

Only by EL or only by scriptlets?

<my:variableTest testname="howToCallThis"/>

${howToCallThis}
or
<%= howToCallThis %>

Regards
Oliver
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!