Blank window during the first access to the page
<p>I have a very strange problem, I have a <code>useBean</code> <code>loginCheck</code> which is stored in session and I want to use it to display a different menu according to the user logged. So here is my code in the JSP :</p>
<pre><code>&lt;jsp:useBean id=&quot;loginTest&quot; type=&quot;java.lang.String&quot; scope=&quot;session&quot;/&gt;
...
...
...
&lt;ul id=&quot;menu&quot;&gt;
  
  &lt;li&gt;&lt;a href=&quot;&lt;%=adresseIP.adressePage %&gt;derogcontroller?lien=demandederog&quot;&gt;Faire une demande de dérogations&lt;/a&gt;&lt;/li&gt;
 
  &lt;li&gt;&lt;a href=&quot;&lt;%=adresseIP.adressePage %&gt;derogcontroller?lien=listedemandes&amp;demandeur=user&quot;&gt;Voir mes demandes&lt;/a&gt;&lt;/li&gt;
  
  &lt;%if(loginTest.equals(&quot;admin&quot;)){ %&gt;&lt;li&gt;&lt;a href=&quot;&lt;%=adresseIP.adressePage %&gt;derogcontroller?lien=utilisateur&quot;&gt;Espace admin&lt;/a&gt;&lt;/li&gt;&lt;%} %&gt;
  
  &lt;%if(loginTest.equals(&quot;manager&quot;)){ %&gt;&lt;li&gt;&lt;a href=&quot;&lt;%=adresseIP.adressePage %&gt;derogcontroller?lien=utilisateur&quot;&gt;Manager&lt;/a&gt;&lt;/li&gt;&lt;%} %&gt;
  
  &lt;%if(loginTest.equals(&quot;paie&quot;)){ %&gt;&lt;li&gt;&lt;a href=&quot;&lt;%=adresseIP.adressePage %&gt;derogcontroller?lien=utilisateur&quot;&gt;Paie/Poste&lt;/a&gt;&lt;/li&gt;&lt;%} %&gt;
  
&lt;/ul&gt;
</code></pre>
<p>When I run into this page the first time I have a page completely blank, no error, no logs, nothing. Then I run the page without the menu and the <code>useBean</code>, so it works great, I can see the rest of the page. And then I put back my <code>useBean</code> and my menu and here, it works, I can see the menu with the good link according to the user.</p>
<p>I'm very confused because my code works but only when I remove the code, access to the page, put back the code and refresh. Any idea about this problem ?</p>