File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question about TLD and variable

 
Oliver Rensen
Ranch Hand
Posts: 109
Eclipse IDE Firefox Browser Java
  • 0
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic