Is there a better way of highlighting "active" link in struts 2

        <li class="${param['active'] == 'home' ? 'active' : ''}">       
                <s:url id="homeId" action="home">
                        <s:param name="active" value="%{'home'}" />
                </s:url>
        
                <s:a href="%{homeId}">
                        <s:text name="home" />
                </s:a>                  
        </li>

This one works but it shows ?active=home in the url which I don't like.


Regards,
Tuomo S.
-- 
View this message in context: 
http://www.nabble.com/-S2--highlighting-active-link-tf4529361.html#a12924511
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to