Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

163
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda