Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Is EL enbaled defaultly?  RSS feed

 
avseq anthoy
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But why I must type isELIgnored="false" in page directive?
Does I must setup some configure?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Depends on a lot of factors that you have not told us.

What container? What version? How have you declared your web.xml?
 
avseq anthoy
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry.
I use Tomcat 5.016 and web.xml as follow

<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (c) 2002 by ObjectLearn. All Rights Reserved. -->
<web-app>
<servlet>
<servlet-name>myfirst</servlet-name>
<servlet-class>first.FirstClass</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>myfirst</servlet-name>
<url-pattern>/first.do</url-pattern>
</servlet-mapping>
</web-app>
[ July 03, 2005: Message edited by: avseq anthoy ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Under Tomcat 5 you must declare your web app as Servlets 2.4 web app in the web.xml in order to enable the EL by default.

Something like this:

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!