Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Need help getting a test condition to work on a boolean property  RSS feed

 
Dave Alvarado
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In my bean, I have this method ...



and in my JSP page, I have this JSTL ...



This prints out, "room service: true", but that's it -- the test condition is not evaluating to true and the
  • is not printing out. How can I correct this?

    Thanks, - Dave
  •  
    Bear Bibeault
    Author and ninkuma
    Marshal
    Posts: 65833
    134
    IntelliJ IDE Java jQuery Mac Mac OS X
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Without information about your version of Servlets, JSP and JSTL, there's nothing to be said. I have pointed this out to you before. Without this information it's impossible to tell if your configuration is valid.

    Does a View Source show anything in the HTML?
     
    Dave Alvarado
    Ranch Hand
    Posts: 436
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    I'm running Tomcat 6.0.26, JSTL 1.2. The view source confirms what I said, which was that nothing gets output between the test condition.

    Thanks for any further insights, - Dave
     
    Dave Alvarado
    Ranch Hand
    Posts: 436
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Doh! I forgot the "$" in front of the test expression. Should have been



    Anyone know how to make Tomcat throw an error the way it was before? Thanks, - Dave
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!