This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jstl problem in Spring MVC
 
Similar Threads
HFSJ P408 jsp Include tag example
Illegal State Exception: Ref Page 412 HF Book
Peculiar problem with js and css file
jsp:setProperty question
include directive confusion