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 JSP and the fly likes JSP set and out 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 » Java » JSP
Bookmark "JSP set and out" Watch "JSP set and out" New topic
Author

JSP set and out

Dan Howard
Ranch Hand

Joined: Feb 22, 2004
Posts: 47
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

Joined: Jan 10, 2002
Posts: 60766
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Mark E Hansen
Ranch Hand

Joined: Apr 01, 2009
Posts: 643
You see $title, not ${title}?
Dan Howard
Ranch Hand

Joined: Feb 22, 2004
Posts: 47
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

Joined: Jan 10, 2002
Posts: 60766
    
  65

 
 
subject: JSP set and out
 
Similar Threads
tld files for struts 1.3.5
How to Avoid directives redundancy
Struts tiles 1.2 to 1.3.10 upgrade issue
Are these tags OK to have with no Internet Connection?
JSP noob question from a velocity user