*
The moose likes Beginning Java and the fly likes generating error message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "generating error message" Watch "generating error message" New topic
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: 3344

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: 3344

Cool! My pleasure
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: generating error message
 
Similar Threads
Adding new checkbox in JSP
Change Drop down to Check Box
how to prepopulate an address field ?
Autopopulating office and home address
Sever Side form Validations