Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP set and out

 
Dan Howard
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

In my page I have:



And then later in the same page I have:



But in the page I see $title and not Scheduler. What's wrong?

TIA
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64700
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you see if you use ${title} without <c:out>?

If the EL isn't being evaluated, chances are your web app is misconfigured. Check the JSP FAQ.

What do see in the View Source? Are the JSTL tags being evaluated at all?

By the way, following conventions is a good idea because no one gets confused when they look at your code. The core tags should be mapped to prefix c, not core.
 
Mark E Hansen
Ranch Hand
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You see $title, not ${title}?
 
Dan Howard
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks! My web.xml didn't have any proper declarations in it. I changed it according the FAQ and I see it now correctly.

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64700
86
IntelliJ IDE Java jQuery Mac Mac OS X
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic