Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

unable to execure JSP expression Language functions in my jsp

 
sarat babu
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Any configuration needed to execute Expression Language functions in jsp.
From HFSJ book, Dog name is :${person.dog.name}
i got displaying as same as ${person.dog.name} on jsp, not getting data that is there in the object of dog.
can any one help me out on this issue?
 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try
${person["dog.name"]}
 
sarat babu
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Gowher ,
now i am getting as ${person["dog.name"]} on jsp, rather than to display value of name in that object "dog"
 
Ali Gohar
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
which web/application server verion are you using? Does it support jsp 2.0?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please check this :
http://faq.javaranch.com/view?ServletsWebXml
 
Manikandan Jayaraman
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hii,

Actually it is the probblem with your web container / version. If not, then a wrong version of DD (web.xml) probably.

What I am telling you is a work-around here ...

In your JSP use page directive and set attribute isELIgnored="false".

If you want to use EL in tag files then use the same in attribute in tag directive.
 
sarat babu
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Satou,
my problem got rectified, when i was configured my web.xml as you given way.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic