Bonjour,

je souhaite tester dans une jsp(jsf) si une session est ouverte afin de pourvoir faire un lien (connection/deconnexion) en fonction du resultat. La session fonctionne avec JAAS.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
<c:choose>
         		<c:when test="????????????????????????????">
         			<h:commandLink action="MainAccount">
         			<h:outputText value="#{i18n.LABEL_Header_MyBankingAccount}"/>
         			</h:commandLink>
         		</c:when>
 
         		<c:otherwise>
         			<h:commandLink action="Main">
         			<h:outputText value="#{i18n.LABEL_Header_SignOff}"/>
         			</h:commandLink>
         		</c:otherwise>
         	</c:choose>
Merci par avance pour les reponses