This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes struts core tags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts core tags" Watch "struts core tags" New topic
Author

struts core tags

Dave Mere
Ranch Hand

Joined: Oct 25, 2004
Posts: 37
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

Joined: Feb 05, 2003
Posts: 4727

Your ${} should include the comparison to 'C'. Right now you're placing the comparison outside of it.


A good workman is known by his tools.
Dave Mere
Ranch Hand

Joined: Oct 25, 2004
Posts: 37
Ah . . . so simple, but so crucial.

Works great - thanks Marc.
 
jQuery in Action, 2nd edition
 
subject: struts core tags
 
Similar Threads
checking logic:match for multiple values
JSTL choose example
logic tags in struts
How to do database pagination using JSTL tags
simple JSTL problem