Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Expression Language in Taglibs

 
vidya archana
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I am trying to develop a jsp page using taglibs. In the code i am assigning values to the tag attributes using Expression Langage. But the El just shows up as simple text in the HTML.. not getting the value of the EL. y?
In the tutorial for EL, it is said that, it is possible to control the evaluation of the EL expressions by specifying isELEnabled value in the page directive. Also it is said that the default value of isELEnabled is "true" which means without specifying anything in the page directive, the container will evaluate the EL expressions and will return the result.
In my code, its not working
pls help
 
Chetan M
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vidya,
When you say taglib attributes not taking expression value, first that comes to mind is tld file rtexprvalue tag value.
Your .tld file should contain
<rtexprvalue>false</rtexprvalue>
For example, say your taglib attribute is content,
then for the same, entry in your tld file should be
...
<attribute>
<name>content</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue></attribute>
...
Please change your .tld file and see it works or not.
Its better to have rtexprvalue tag value always set to true.
Hope this helps.
[ May 06, 2003: Message edited by: Chetan M ]
 
vidya archana
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
yes.I have specified the <rtexprvalue> in my code.
this is the portion of tld file ..
/*********/
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
/*********/
still the thing doesn't work ..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic