File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Struts display:column when/otherwise 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 display:column when/otherwise" Watch "Struts display:column when/otherwise" New topic

Struts display:column when/otherwise

Pierre-Yves Chibon

Joined: May 04, 2010
Posts: 3

I am facing a small problem in my jsp.

It compiles fine, but does not work.
The problem comes from the test:
<c:when test="row.method == 'test'}" >
is not correct, neither is:
<c:when test="foobar.method == 'test'" > (which actually even crash when ran)

Playing with the id of the display:table does not seem to change a thing.

It is probably very simple but the last hour I spent in google did not help me...

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60800

Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Pierre-Yves Chibon

Joined: May 04, 2010
Posts: 3
Sorry and thanks for moving it.
Pierre-Yves Chibon

Joined: May 04, 2010
Posts: 3
so I finally got something working via:

I agree. Here's the link:
subject: Struts display:column when/otherwise
Similar Threads
Comparing values using JSTL
Display Tag horizontal scroll bar issues
How to add get the checkbox selected value from the display tag
Getting Checkbox value - DisplayTag library
getLocaleResolverInstance No LocaleResolver configured. - error in display table