Link to home
Start Free TrialLog in
Avatar of dkim18
dkim18

asked on

Setting text field background color in server side

Hi!

I am doing server side validation that requires double entry. Is there any way that I can make text field more noticeable when two input were not matched. Like making  text field with red background…

For now, I am just making unmatched field empty like this.
...
...
if(secondTempArr[0]==null ||!(secondTempArr[0].equals(projectForm.getGcrc_nbru_id()))){              
    projectForm.setGcrc_nbru_id("");
}
...
...

thanks
Avatar of suprapto45
suprapto45
Flag of Singapore image

Not from the server side, the concept is that you need to set some variable and you need to check this variable on your JSP and display the necessary things (probably switching the CSS style).

David
ASKER CERTIFIED SOLUTION
Avatar of TimYates
TimYates
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial