From: Jim Reynolds [mailto:[EMAIL PROTECTED]
> After analyzing the Mailreader2 application, I cannot figure out these
> three lines of the Welcome.java file, full class below:
> 
>     String message = getText(Constants.ERROR_DATABASE_MISSING);
>     if (Constants.ERROR_DATABASE_MISSING.equals(message)) {
>       addActionError(Constants.ERROR_MESSAGES_NOT_LOADED);
>     }
> 
> Wouldn't we always be adding an ActionError? Does getText do something
> that I am not seeing in the API?

getText retrieves text via a key. So it's setting 'message' to the text
stored under that key, not the value of the key itself.

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to