Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About page directive

 
anil kumar
Ranch Hand
Posts: 447
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I gave in the web.xml like this

<jsp-config>
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<el-ignored>true</el-ignored>
</jsp-property-group>
</jsp-config>


And in the jsp page i am not enable EL,because by default EL is enabled.And the page directive overwrites the web.xml file.But the el is not getting evaluated.

Can any one tell me why it is not evaluating?


Regards

Anil
 
kajal mukergi
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi


till my knowledge

when you say manually keep the..<@ and say.. about the particular attribute
then only this jsp page will over shadow the DD

or the DD will always dominate.
 
Alex Pol
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The page directive takes precendece over the DD declaration ONLY IF IT IS THERE.

So if you disable EL in the DD and specifically enable it in the page, it will work, your EL will be evaluated.

But if you disable EL in the DD and don't don anything in the page, your EL will not be evaluated.
 
anil kumar
Ranch Hand
Posts: 447
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey


Alex Pol

Thanks Man

I missed very minute(Small) point.


But in the Head first book they said by default EL is enabled.Does it mean it is enabled throught DD?

Regards


Anil Kumar
[ August 29, 2007: Message edited by: anil kumar ]
 
Alex Pol
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, by default means : "If there is NOTHING in the DD or in the page about whether EL should be evaluated or not, EVALUATE IT"
 
anil kumar
Ranch Hand
Posts: 447
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Thank You


Regards

Anil Kumar
 
khushhal yadav
Ranch Hand
Posts: 242
Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Anil,

But in the Head first book they said by default EL is enabled.Does it mean it is enabled throught DD?


That also depends upon the version.

In JSP 2.0, It's enabled by default. But for the previous version, it's not so. So it's better to specify them explicitly.

Or even more better to have <%@ page is ELIgnored="true"%> directive in each of your JSP in which you want the EL to be evaluated.

Regards,
Khushhal
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic