• 20 hours
  • Hard

Free online content available in this course.

course.header.alt.is_video

course.header.alt.is_certifying

Got it!

Last updated on 7/22/22

JSTL et conditions

Téléchargez le fichier audiodesciption : Partie 3, Chapitre 4

Vous trouverez sous la vidéo les codes source du cours.

Codes source

Un test en JSTL :

<c:if test="${ 50 > 10 }" var="variable">
    C'est vrai !
</c:if>

Un test multiple en JSTL :

<c:choose>
    <c:when test="${ variable }">Du texte</c:when>
    <c:when test="${ autreVariable }">Du texte</c:when>
    <c:when test="${ encoreUneAutreVariable }">Du texte</c:when>
    <c:otherwise></c:otherwise>
</c:choose>

Les conditions sont exécutées dans l'ordre. Si aucune ne convient, c'est otherwise qui sera exécuté.

Example of certificate of achievement
Example of certificate of achievement