Expand my Community achievements bar.

SOLVED

If Checkbox is checked then only title should be clickable otherwise same page.

Avatar

Level 1

On page these is content and read mode button. Earlier by clicking on content and read mode it navigates to new page. Now my requirement is keep clickable option for content as optional by creating dailog. Want test condition for this in jsp

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @17529290 

 

Below is the syntax for if-else condition in jsp.

 

<c:choose>
   <c:when test="${properties.abc == 'Yes'}">...</c:when> <!-- if condition -->
   <c:when test="${properties.abc == 'No'}">...</c:when> <!-- else if condition -->
   <c:otherwise>...</c:otherwise>    <!-- else condition -->
</c:choose>- 

 

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi @17529290 

 

Below is the syntax for if-else condition in jsp.

 

<c:choose>
   <c:when test="${properties.abc == 'Yes'}">...</c:when> <!-- if condition -->
   <c:when test="${properties.abc == 'No'}">...</c:when> <!-- else if condition -->
   <c:otherwise>...</c:otherwise>    <!-- else condition -->
</c:choose>-