If I had something like this:
<%
    String name =  (String)session.getAttribute("username");
    if(name!=null)
{%>
    <div id="navBar">
            <h2><a href="blah.jsp">Home</a>   |   
        <a href="blah1.jsp">SomewhereElse</a>   |  
    </div>
<%}%>
Basically, if variable name is null, don't display navigation bar, but since mixing Java and HTML should be avoided - I can't see how you can rewrite this to separate the 2 languages???
 
     
     
     
    