This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jstl problem in Spring MVC

 
K Aditi
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • 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,
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • 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
  • 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 Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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 Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Thanks for the reply!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic