If Checkbox is checked then only title should be clickable otherwise same page. | Community
Skip to main content
April 7, 2022
Solved

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

  • April 7, 2022
  • 1 reply
  • 503 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by JeevanRaj

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

 

1 reply

JeevanRaj
Community Advisor
JeevanRajCommunity AdvisorAccepted solution
Community Advisor
April 7, 2022

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