Meaningless Drivel is fun!*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts display:column when/otherwise" Watch "Struts display:column when/otherwise" New topic
Author

Struts display:column when/otherwise

Pierre-Yves Chibon
Greenhorn

Joined: May 04, 2010
Posts: 3
Hi,

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
Marshal

Joined: Jan 10, 2002
Posts: 60761
    
  65

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
Greenhorn

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

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

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts display:column when/otherwise
 
Similar Threads
Comparing values using JSTL
How to add get the checkbox selected value from the display tag
Display Tag horizontal scroll bar issues
Getting Checkbox value - DisplayTag library
getLocaleResolverInstance No LocaleResolver configured. - error in display table