• Post Reply Bookmark Topic Watch Topic
  • New Topic

EL in a .tag file

 
Amru Jahagirdar
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WhenI use EL in my JSP , i have to explicitely make isELIgnored="false" on each page, otherwise it prints
like ${parametername}. I have not specified <el-egnored> in my DD.

My problem is, when I use EL in a tag file, I can not make isELIgnored="false" there, as we cant use page directive in a tag file.
I wonder why it does not take EL is enabled by default. Help me out guys.. thanks...
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65529
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Works fine for me. Is your deployment descriptor defined as a Servlets 2.4 or 2.5 application? If it uses the 2.3 DTD, EL will be disabled by default.

You should not have to put anything on every page except for the taglib declaration (and you can even avoid that with a prelude).
 
Amru Jahagirdar
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes.. it is 2.3 DTD.. I think problem was there.. thanks a lot...

but i am still unable to use EL in my .tag file. how can I enable EL for my tag file?
I think I can use el-egnored in DD for JSP only , is that right?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65529
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Amru Jahagirdar wrote:but i am still unable to use EL in my .tag file. how can I enable EL for my tag file?

You should not have to do anything special for tag files. If the EL is enabled for JSPs, it is enabled for tag files.

I think I can use el-egnored in DD for JSP only , is that right?

You should not have to use the el-ignored directive anywhere.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!