struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michaƫl JERUSALMI <>
Subject Incorrect test syntax
Date Fri, 24 Sep 2010 13:13:39 GMT

I'm working on a web application with Struts, made for several projects, and I'm trying to
write a test to display (or not) a tab in case of a particular project.

I wrote a test, which positive result should be to add a new tab, and which negative result
is to write the content of the ProjectName property.

Here it is : 

    <s:if test="config.project == 'dba2'">
           <li><a href="#null" onclick="openReport('ia08');">Unsolved Tickets</a></li>
           <s:property value="config.project" /> //config.project contains the value

The result so far as always been to write the content of the value config.project, ie dba2
instead of writing the expected tab.

I've tried several syntax, including test="%{"config.project} == 'dba2'", but nothing worked.

Hoping you could help me.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message