FW: [thelist] JSP Help
Hassan Schroeder
hassan at webtuitive.com
Wed Jun 9 09:59:49 CDT 2004
Ani Phelan wrote:
> That could work, but what about all the other pages on the site? For
> every page that isn't Wireless or Switches, I want to load Routers
> expanded..
OK, so make `routerClass = "treenodeshow"` the default, and add the
statements to set it to "null" explicitly for Wireless or Switches,
as in:
> <%
String routerClass = "treenodeshow";
> String switchesClass = "null";
> String wirelessClass = "null";
> if (onPage.startsWith("/cisco/systems/routers/")) {
> routerClass = "treenodeshow"; }
if (onPage.startsWith("/cisco/systems/switches/"))
{
routerClass = "null";
switchesClass = "treenodeshow";
}
if (onPage.startsWith("/cisco/systems/wireless/"))
{
routerClass = "null";
wirelessClass = "treenodeshow";
}
> %>
> <li class="<%= routerClass %>">Routers
> ...
> <li class="<%= switchesClass %>"> Switches
> ...
> <li class="<%= wirelessClass %>"> Wireless
HTH,
--
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com
dream. code.
More information about the thelist
mailing list