• 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

jstl problem in Spring MVC

 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am working on examples from "Developing a Spring Framework MVC application", it is the pdf which is bundled along with the Spring framework download.
I am using Tomcat5.5 and Spring 2.5 and IE6.0
The application which I have created doesn't display c ut value, my jsp displays ${now} instead of now's value, neither my jsps understand the following tag

I have included jstl.jar and standard.jar which came along with the spring distribution.
Also the .java of my jsp which doesnt display the tags is:
package org.apache.jsp.WEB_002dINF.jsp;


Eclipse says that org.apache.jasper could not be resolved and lot more similar errors.I believe that it is jstl problem. Could anybody shed some light on it?
Thanks,
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

my jsp displays ${now} instead of now's value


I think that you need to configure your web.xml properly. Check this FAQ.
 
K Aditi
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I checked my web.xml and modified it according to FAQ entry.But that did not do the trick.My web.xml is as following:
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It doesn't look like the FAQ Remove the following :


And I think that in Tomcat 5.5 you should be using the Servlets 2.4 and JSP 2.0 web.xml. The one at the bottom of the FAQ.
[ September 29, 2008: Message edited by: Christophe Verre ]
 
K Aditi
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Thanks a lot!
That was indeed the problem!
 
K Aditi
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just an after-thought,
Now my web.xml looks like

It does not have a DOCTYPE tag...for now it works just fine.But in which situations DOCTYPE tag is unavoidable? I googled for DOCTYPE tag and the gist of what I read is web.xml should have DOCTYPE tag.Obviously, I don't agree.Am I correct?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You usually use DOCTYPE to declare a DTD. Servlets 2.4 use an Xml Schema instead of a DTD, therefore the DOCTYPE is not used.
 
K Aditi
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic