I've got a problem with a tag file. When I want to show a tag attribute, it is printed out as "${subtitle}" in my browser. The EL expression has not been evaluated. This is my code:
I tried the same code on my home pc where I didn't have this problem. Can't see what's causing this here though.
Vassili Vladimir
Ranch Hand
Joined: Mar 08, 2007
Posts: 1585
posted
0
Hi,
I was facing the same problem, and i used the tag directive with the isELIgnored attribute set to false, as follows and it worked :
Best of luck ...
Vassili ...
SCJP 5.0, SCWCD 1.4, SCJA 1.0
Tim Storms
Ranch Hand
Joined: Apr 27, 2006
Posts: 64
posted
0
Yes, it works like a sharm. Thanks Vladimir!
Vassili Vladimir
Ranch Hand
Joined: Mar 08, 2007
Posts: 1585
posted
0
Anytime ...
Tiffiny Yang
Ranch Hand
Joined: Mar 29, 2006
Posts: 124
posted
0
Is that works?
Mine does not.
I remeber one a mock question I did was asking tagdependent is defined body-content, then what's happening when you have scriptlet and EL express inside the body part.
the anser is Scripting won�t get translated ( no display in the browser) EL will be treated as plain text. I've tried it. it works as explained.
This is wrong. From version 2.4, EL is enabled by default. You don't need to set this attribute anymore. The problem lies somewhere else.
Vassili Vladimir
Ranch Hand
Joined: Mar 08, 2007
Posts: 1585
posted
0
OK where's the problem ?
I really need to know it, i have defined the web.xml exactly in the way so it can adhere the 2.4 and it still did not work till i set it manually ...
Please i need to hear from you ...
Thanks in advance ...
Dagbj�rn Nogva
Greenhorn
Joined: May 20, 2007
Posts: 10
posted
0
Hi,
One explanation could be the presence of an el-ignored element in the DD.
This element will turn off EL evaluation in all *.jsp files, but may be overridden by a <%@ page isELIgnored="false" %> directive in an individual JSP page.