Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

154
Views
JSP -if != null conditions on parameter

I a have jsp form page which get parameters an I need to check if one of them != null ,I have tried to write the condition but its not working: It went to the if block and not to the else block any way(display null or the value respectively).

The code:

</div>
            <div class="grid_8 row12 td_style_fieldValue">
            <% if(!userData7.isEmpty()){%>
            <div id="personalId" class="data_style_payment" disabled="disabled" ><%=userData7%></div>
            <%}else{%>
            <input type="text" pattern="[0-9]*" id="personalId" name="personalId" maxlength="9" dir="ltr" autocomplete="off" onkeyup="limitInput(this,9)" onchange="return validatePersonalId()"/>
            <%}%>
            </div>

"userData7" is a parameter with value. please assist me what am I missing here ?does the if:else syntax is right? tnx

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!