• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

${} is not working in JSP page.

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 9707
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 689
Scala Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic