[thelist] JSP help please [more]

Hassan Schroeder hassan at webtuitive.com
Wed Jan 14 11:29:12 CST 2004


Tom Dell'Aringa wrote:

>><!-- Then our conditional navigation stuff enters ... -->  

>>  else if(path== "/plan/plan.jsp") {
>>    %>
>>    <ul id="subnav-plan">
>>      <li id="nav-index"><a href="/index.jsp">report</a></li>
>>      [etc, etc]
>>    </ul>

> Ok, this is working fine but I've realized it might not be what I
> need. Reason being - take the "plan" section for example. Not only do
> I need the "subnav-plan" subnav to show up when plan.jsp loads, but
> also EVERY OTHER page in that section must have it as well.

If by "section" you mean directory, just change to

      else if( path.indexOf("/plan/") > -1 ) {

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