Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DD configuration for enabling EL in JSPs

 
Manwatkar Vaibhav
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am doing EL practise.. I want to enable EL for all my JSPs for which,
I did the following configuration in Deployment Descriptor..

<jsp-config>
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<scripting-invalid>false</scripting-invalid>
<el-ignored>false</el-ignored>
</jsp-property-group>
</jsp-config>

But it is not working..

I need to explicitly put the <%@ page isELIgnored="false" %> in each JSP..

Why So..?

Is anything wrong with the configuration..
 
Leonardo Luiz
Ranch Hand
Posts: 51
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

EL is enabled by default. It�s not necessary configure it.


�The default mode for JSP pages in a Web Application delivered using a
web.xml using the Servlet 2.4 format is to evaluate EL expressions; this
automatically provides the default that most applications want.�


JSP 2.0 Spec.
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's enabled by default if you use version 2.4. Check your web.xml, and make sure it looks like the following :
http://faq.javaranch.com/view?ServletsWebXml
 
Manwatkar Vaibhav
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Leonardo & Satou,

I made the change in <web-app> tag and it worked for all JSPs..

Then again I disabled the ELs from web.xml by setting the <el-ignored> to true and ELs didn't worked..

Thanks..
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic