This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSTL tags and test conditions

 
Bai Shen
Ranch Hand
Posts: 323
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay, I thought I had this working, but it doesn't seem to be anymore. I have a servlet that sets some session attributes.

Then I have a JSP that the servlet redirects to.


Currently it only prints out C no matter the values of the variables. I'm getting the correct values out of the c.out statements, so I can only assume that something is wrong with my test statements. I've tried as listed, with ==true and with ==Boolean.TRUE.

What am I missing?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64623
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So you are saying when agency is true, that its still displaying (not "printing") C?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ue EL expressions instead of those parenthesis.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh, snap!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64623
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good catch David! Just those few tiny pixels of difference! (I have to put my nose practically up to the screen to see the difference.)
 
Bai Shen
Ranch Hand
Posts: 323
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That was it. Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic