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

EL in a .tag file  RSS feed

 
ruchi grover
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am not able to evaluate the EL expression in the .tag file ,although i have my EL disabled by default.
However i have used <el-ignored> as false in my DD.
But still it is not evaluating EL.

My.tag file is as follows:-

i am including this tag file through my JSP as:-

However i am getting the output as:-


the name is:${param.names}
the id is:${param.id}
${subtitile}


 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66205
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to use code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please read this for more information.

You can go back and change your post to add code tags by clicking the button on your post.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66205
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ruchi grover wrote:although i have my EL disabled by default

Well, if the EL is disabled, then it won't evaluate. Why do you have it disabled?
 
ruchi grover
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:
ruchi grover wrote:although i have my EL disabled by default

Well, if the EL is disabled, then it won't evaluate. Why do you have it disabled?



Although i am not using servlet 2.3(WHERE I BELIEVE THE EL is disabled by default),however my EL was still disabled by default and i always used the page directive in my JSP to evaluate the EL
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66205
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Again, why do you have it configured like that?
 
ruchi grover
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Again, why do you have it configured like that?


so dear what should i do now??
and how will i evaluate the EL.please suggest me ..
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66205
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read the FAQs. Establish your deployment descriptor to enable the EL throughout your application, and get the goo off the pages. There's no valid reason to disable the EL.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!