• Post Reply Bookmark Topic Watch Topic
  • New Topic

${} is not working in JSP page.  RSS feed

 
Ritesh Pareek
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

EL is not working in JSP


Code in JSP(I am using display table)






[javadoc]
Manglish N/V/E Genre Era Vote Zone
Bumpin ${exp.partOfSpeech} urb 12 ${exp.zone}
get down with ${exp.partOfSpeech} urb 1910 2 ${exp.zone}
lame ${exp.partOfSpeech} 1 ${exp.zone}
peepship ${exp.partOfSpeech} 2 ${exp.zone}
tick-ticks ${exp.partOfSpeech} 1990 2 ${exp.zone}

[/javadoc]


On window machine it is working fine but on fedora it is not.

I am using Struts, Hibernate on Fedora.
 
Ankit Garg
Sheriff
Posts: 9610
37
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its strange that it is working on one OS and not on the other. I know only one reason for this kind of behavior and that is when you set the isELIgnored property of the page directive...
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the deployment descriptor set up correctly as outlined in the JSP FAQ? Are you using the same version of Tomcat on both systems?
 
Ritesh Pareek
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,


I got solution for this problem. I to put


on each page

I have tried it in web.xml but it didn't work(It must be worked but not, why i don't know).so I didn't specified any thing in web.xml

Now my problem is fixed

Thanks you all for help
 
Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi,

Please see in web.xml if you find any tag like


remove this.

so no need write every jsp <%@ page isELIgnored="false" %> tag.

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ritesh Pareek wrote:I got solution for this problem. I to put

on each page

That is not a solution, that's a band-aid.

A properly configured web application has no need for any extra goop on each and every page.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!