• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

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

 
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
  •  
    Marshal
    Posts: 67389
    173
    Mac Mac OS X IntelliJ IDE jQuery Java
    • 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
     
    Why am I so drawn to cherry pie? I can't seem to stop. Save me tiny ad!
    Two software engineers solve most of the world's problems in one K&R sized book
    https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
      Bookmark Topic Watch Topic
    • New Topic