FileDocCategorySizeDatePackage
Welcome.javaAPI DocApache Struts 2.0.9 Apps1602Mon Jul 23 13:43:12 BST 2007mailreader2

Welcome

public class Welcome extends MailreaderSupport
Verify that essential resources are available.

Fields Summary
Constructors Summary
Methods Summary
public java.lang.Stringexecute()


        // Confirm message resources loaded
        String message = getText(Constants.ERROR_DATABASE_MISSING);
        if (Constants.ERROR_DATABASE_MISSING.equals(message)) {
            addActionError(Constants.ERROR_MESSAGES_NOT_LOADED);
        }

        // Confirm database loaded
        if (null==getDatabase()) {
             addActionError(Constants.ERROR_DATABASE_NOT_LOADED);
        }

        if (hasErrors()) {
            return ERROR;
        }
        else {
            return SUCCESS;
        }