• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EL not working in .tag files

 
Reema Patel
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,
I'm using .tag files from a JSP page. Pls consider the bestHeader.tag file:


A JSP page includes this tag file and sets the best attribute correctly.

Code from the JSP page is given here:


However, the tag file can't comprehend the EL expression. Also, I get an error if I try to use the page directive with isELIgnored set as false. Also, to be on the safer side I've enabled ELs in web.xml.

Any help shall be highly appreciated.

Thanks
Reema
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, to be on the safer side I've enabled ELs in web.xml.

I'd rather say that you're not sure how EL is enabled It's enabled by default in Servlets 2.4. Check that your web.xml looks like this.

However, the tag file can't comprehend the EL expression.

What is the output ? Any error ?
 
Reema Patel
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Verre!
U saved my day.

JavaRanch Rocksssssssssssssss!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic