Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts core tags

 
Dave Mere
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. I'm trying to perform some jsp logic using core tags, but the jsp isn't responding as I'm expecting it to! Here's the jsp code



So accset is my bean, and name and type are properties of this bean. I'm sure the value of accset.type is C. I output accset.type before the <c:choose> logic and the result is "C", as expected. Yet the output of the logic is "C not found", every time.

Can anyone see what I'm missing?
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your ${} should include the comparison to 'C'. Right now you're placing the comparison outside of it.
 
Dave Mere
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah . . . so simple, but so crucial.

Works great - thanks Marc.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic