Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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

0 Replies

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>-