Meaningless Drivel is fun!*
The moose likes Other Application Frameworks and the fly likes jstl problem in Spring MVC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "jstl problem in Spring MVC" Watch "jstl problem in Spring MVC" New topic
Author

jstl problem in Spring MVC

K Aditi
Ranch Hand

Joined: Mar 17, 2008
Posts: 89
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,


Aditi
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

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

I think that you need to configure your web.xml properly. Check this FAQ.


[My Blog]
All roads lead to JavaRanch
K Aditi
Ranch Hand

Joined: Mar 17, 2008
Posts: 89
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

Joined: Nov 24, 2005
Posts: 14687
    
  16

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

Joined: Mar 17, 2008
Posts: 89
Hey Thanks a lot!
That was indeed the problem!
K Aditi
Ranch Hand

Joined: Mar 17, 2008
Posts: 89
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

Joined: Nov 24, 2005
Posts: 14687
    
  16

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

Joined: Mar 17, 2008
Posts: 89
Thanks for the reply!
 
 
subject: jstl problem in Spring MVC