Thanks!  Thought my whole world got turned upside-down for a few minutes there.

On Thu, Jan 8, 2009 at 9:07 AM, Musachy Barroso <musa...@gmail.com> wrote:
> We all go thru that one at least once ;):
>
> http://struts.apache.org/2.x/docs/why-doesnt-the-if-tag-evaluate-params-properly.html
>
> musachy
>
> On Thu, Jan 8, 2009 at 12:02 PM, Robert Dietrick <rdietr...@gmail.com> wrote:
>> I have a very simple JSP page in which I want to test for the value of
>> a parameter passed via the query string (x.jsp?section=users).  Any
>> time I try to test for a specific parameter value, however, it
>> *always* returns true (regardless of the actual value).
>>
>> For example, my JSP:
>>
>> <%@ taglib prefix="s" uri="/struts-tags" %>
>>
>> <ul id="topNav">
>>        <li <s:if test="{#parameters.section ==
>> 'user'}">class="activelink"</s:if>><s:a href="#">Users</s:a></li>
>>        <li <s:if test="{#parameters.section ==
>> 'cpuPlayers'}">class="activelink"</s:if>><s:a
>> href="#">CPUPlayers</s:a></li>
>>        <li <s:if test="{#parameters.section ==
>> 'email'}">class="activelink"</s:if>><s:a href="#">Email
>> Templates</s:a></li>
>> </ul>
>>
>> Every one of those <s:if> tags evaluates to true, regardless of the
>> value of the 'section' parameter passed in the query string.
>>
>> Can someone please tell me what it is I'm doing wrong?
>>
>> If it matters, I'm running on Tomcat 6.0.18.
>>
>> Thanks.
>> -rob
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to