Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
laura mccord
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure that your web.xml is defined correctly. Check this FAQ.
 
laura mccord
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic