This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Journey To Enterprise Agility and have Daryl Kulak & Hong Li on-line!
See this thread for details.
Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Evaluating EL  RSS feed

 
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In p393 of HFS, there is such an exercise

evaluates:

${num == integer-1}

where in another servlet dispatching to this jsp:
...
integer i= new Integer(3);
request.setAttribute("integer",i);
String num="2";
request.setAttribute("num",num);
...

My question is what are the exact rules for evaluating object type expression in EL? Are they all toString'ed? In above e.x., 'integer' should be evaluated to Integer type while 'num' is evaluated to String type. I guess the 2 must be converted to some common type before being compared. But what are the exact rules for this? HFS does not explain this in detail. Where could I find more information?

Thx
 
Ranch Hand
Posts: 215
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

This is not an exact answer but I suggest that you download the jsp 2.0 specification form here and read Part I, Expression Langugage, particularly page 1-78. It will help you out in this regard.

HTH Mat
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!