[prev in list] [next in list] [prev in thread] [next in thread]
List: struts-user
Subject: RE: Mailreader2 question
From: "Dave Newton" <DNewton () hibbertgroup ! com>
Date: 2006-10-31 18:48:16
Message-ID: 54C744011CC9C342BBA5E7861762242606AE4429 () HIBBERT-EVS01 ! HibbertNet ! com
[Download RAW message or body]
From: Jim Reynolds [mailto:jim.jreynold@gmail.com]
> 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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic