Check whether the user enterd values is blank or not

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ghjk
    Contributor
    • Jan 2008
    • 250

    #1

    Check whether the user enterd values is blank or not

    I'm writing web application using jsp. I want to check user entered values is blank or not. This is my code and I got and error saying ".eqls on incompatibletyp es()" . Anyone please help me..
    Code:
     if ((Integer.getInteger(formbean.getSerial_no()).equals("")){
    
    }
  • jkmyoung
    Recognized Expert Top Contributor
    • Mar 2006
    • 2057

    #2
    formbean.getSer ial_no()).equal s("")
    This is true or false.
    You can't make an integer out of it.

    Comment

    Working...