aspose file tools*
The moose likes Spring and the fly likes model.addAttribute value won't display using JSTL in my jsp file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "model.addAttribute value won Watch "model.addAttribute value won New topic
Author

model.addAttribute value won't display using JSTL in my jsp file

laura mccord
Ranch Hand

Joined: Feb 10, 2009
Posts: 108
I event tried to pass something generic like



And when I try to display the result like such:



What displays is actually ${name} instead of me

I do have the jstl library in my webapp and I did include the following line of code in my jsp file <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

I'm not sure what I'm doing wrong.
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Make sure that your web.xml is defined correctly. Check this FAQ.


[My Blog]
All roads lead to JavaRanch
laura mccord
Ranch Hand

Joined: Feb 10, 2009
Posts: 108
Ugh! That was it!

I have been doing various samples and I must have meshed them without considering the a conflict in versions.

Thanks sooooo much...now I can proceed.

Laura
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: model.addAttribute value won't display using JSTL in my jsp file
 
Similar Threads
Can't get JSTL 1.2 working on Tomcat 6
Help needed with Spring binding and <form:select>
A problem about JSP document (jspx)
JSP + Spring + Ajax
JSP does not call the right method in the controller class