aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes DD configuration for enabling EL in JSPs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "DD configuration for enabling EL in JSPs" Watch "DD configuration for enabling EL in JSPs" New topic
Author

DD configuration for enabling EL in JSPs

Manwatkar Vaibhav
Greenhorn

Joined: Jun 11, 2007
Posts: 26
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..


Regards,<br />---------<br />Vaibhav<br />SCJP 1.4<br />SCWCD 1.4<br />---------
Leonardo Luiz
Ranch Hand

Joined: Mar 24, 2006
Posts: 51
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

Joined: Nov 24, 2005
Posts: 14687
    
  16

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


[My Blog]
All roads lead to JavaRanch
Manwatkar Vaibhav
Greenhorn

Joined: Jun 11, 2007
Posts: 26
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
 
subject: DD configuration for enabling EL in JSPs