Michi_de schrieb: > Actually i've some problem with my GWT project. I have some textfield > and a button. Clickin the button, a method starts and write the string > into a mysql database with a servlet. It works wonderfull. > Now i wanted some additional features in this method. I want to search > the database first, for the string, and if it finds a equal string in > my database it should return a error message and NOT put the new > string into the database.
Extend the first method by throwing an exception in that case. That way you don't need two calls for more or less the same thing. You can throw your own exception by extenting it from SerializableException. Regards, Lothar --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
