I am trying to change background colors of table cells (and whether a link
exists or not) in my menu based on when the user is in a particular page.
Does anyone know how to do the following with logic:equals tags?

<%
  if (getServletInfo().equals("myServletName")) {
%>
<td width="85%" class="secondaryNavigationSelected">Link to Page</td>
<td width="10%" class="secondaryNavigationSelected"
align="right">&nbsp;</td>
<%
  }
  else
  {
%>
<td width="85%">
<html:link forward="myNextPage" styleClass="secondaryNavigation">Link to
Page</html:link>
</td>
<td width="10%" align="right">&nbsp;</td>
<%
  }
%>




_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Reply via email to