This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSTL C:out (Beginners level)  RSS feed

 
Graeme Byers
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

"HeadFirst Servlets and JSP" page 445 states that the code on Line One and Line Two are equivalent ,
but they do not output the same results.
I expected both to output : Line One Graeme , Line Two Graeme.

Thank you for any help.

URL


JSP



Output
======
JSTLDemo.jsp
Line One
Line Two Guest
 
Stefan Evans
Bartender
Posts: 1836
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think what you have missed is the import of the tag library at the top of your JSP:


If you view source on the generated page you will probably see the <cut> tags there.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!