Link to home
Start Free TrialLog in
Avatar of aman0711
aman0711

asked on

How to make a sublist item in navigation panel

Hi experts,
                    Can you please help me out with making two sublist items under the Executive Summary Link?
                     Something like:

Home
Executive Summary
        -Application
        -Aspect
Alerting
Contact us

my present code is below:

<% 
String pageReg= "";
String exc="",asp="",al="",home= "",con="";
 
	try{
	  pageReg=(String)request.getParameter("page").toString();
	 }catch (Exception e){home="class=\"submenu-current\"";}
 
 
		 
		if( pageReg.equals("summary")){
		
		       exc="class=\"submenu-current\"";
		       
		}else if(pageReg.equals("aspects"))
		 {
		 asp="class=\"submenu-current\"";
		 
		 }else if(pageReg.equals("alerts"))
		   {
			al="class=\"submenu-current\"";
			
		   } else if(pageReg.equals("contact"))
		     {
		      con="class=\"submenu-current\"";
		      } else {
			     if(pageReg.equals("home")){
			home="class=\"submenu-current\"";
		      }
		      }
		      
    %>
<div id="left-col">              <!-- begin left column -->
        <div class="inner">
         <img border="0" src="../images/SI_Logo.PNG" width="155"
	height="64">
         <br>
            <ul class="nav-list">
                    <ul class="submenu">
				    <li <%= home%>><a href="index.jsp">Home</a></li>
                    <li <%= exc%>><a href="ExeSum.jsp?page=summary">Executive Summary</a></li>
                    <li <%= al%>><a href="alert.jsp?page=alerts">Alerting</a></li>
                    <li <%= con%>><a href="contact.jsp?page=contact">Contact Us</a></li>
                  </ul>
            
             </ul>
</div>
        </div>

Open in new window

Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

You just need to nest <ul> in <li>. What exactly is the trouble?
Avatar of aman0711
aman0711

ASKER

Hi CEHJ,
             
    So is this the way to do it?

<li <%= exc%>><a href="ExeSum.jsp?page=summary">Executive Summary</a></li>
                 <ul>Application</ul>
                 <ul><Aspect</ul>

????
         
Trouble is, When a user clicks on Application or Aspect, it should be highlighted
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yeah, I got that :-)

CEHJ, I will post another important question in a while..
You have to give your suggestions on that :-)

Thanks in advance :-)
no you need to put the ul inside the li

  • >Executive Summary
                   
    • Application
                   
  • SOLUTION
    Link to home
    membership
    This solution is only available to members.
    To access this solution, you must be a member of Experts Exchange.
    Start Free Trial
    >>You have to give your suggestions on that :-)

    OK
    Thank you CEHJ, Objects :-)
    Thanks :-)
    :-)
    CEHJ,
                I am going to post the question I was talking about to discuss with you in few minutes, please guide me with that