| Author |
generating error message
|
Amritha Ganga
Ranch Hand
Joined: Mar 06, 2007
Posts: 33
|
|
Hi All,
I had a question. In my application, if i select home address from a drop down menu and click "get home address" check box , the system autopopulates home address for me. If i select something else, abd tries to submit it, the system generates an error saying line 1 should be given if it is not the home address. I have created another checkbox for Office visit, which generates office address. But i have a problem with the following code (this is the one which generates error).
How can i include code so that the system will generate error if i select any other option from drop down other than home and "office". Basically i need to add office visit error also to this one (HOME_VISIT "or" OFFICE_VISIT")
Please help me friends..
|
 |
Raghavan Muthu
Ranch Hand
Joined: Apr 20, 2006
Posts: 3327
|
|
Hi Amritha,
What exactly the error are you getting? I would go as follows.
Hope this helps!
|
Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
|
 |
Amritha Ganga
Ranch Hand
Joined: Mar 06, 2007
Posts: 33
|
|
Thanks a lot.. That did help
Amritha
|
 |
Raghavan Muthu
Ranch Hand
Joined: Apr 20, 2006
Posts: 3327
|
|
Cool! My pleasure
|
 |
 |
|
|
subject: generating error message
|
|
|