• 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:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

EL Program stopped my prepration for SCWCD

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have given SCJP, now i am preparing for SCWCD.
But my prepration is stopped at EL.
My programs are not running successfully.following is the program:-

<html>
<body>


${3 div 4}
</body>
</html>

The Expected result is 0.75.

But the output i am getting is:-


${3 div 4}


Whats the problem.

i am using Tomcat 5.

I am doing this to solve from last 2 days.
Thanks in advance
 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The EL is not getting evaluated.
1. Check if the JSP 2.0 Samples with EL is working.
2. Check the dtd version in your web.xml is Servlet 2.4 / JSP 2.0
3. Post your web.xml.
 
Ranch Hand
Posts: 34
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In fact, the Servlet 2.4/JSP 2.0 specification uses a XML schema instead of the dtd that was used by the former specification. Here is how your web.xml file should start:
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic