persistenceexample1/Constants.java


package persistenceexample1;
public interface Constants {
//    MI Application Name ** is also used by the MDK developer plug-in to define the correct archive name
    String MI_APPLICATION_NAME = "MDK_persistence_simpleJSP";
// Events in menu.jsp
    String EVENT_LIST = "listEntries";
    String EVENT_ADDENTRY = "addEntry";
    String EVENT_DELENTRY = "delEntry";
    String EVENT_SAVE = "saveEntries";    
// Events in add.jsp
    String EVENT_ADDENTRYSUBMIT = "addEntrySubmit";
    String EVENT_ADDENTRYCANCEL = "addEntryCancel";
// Events in delete.jsp
    String EVENT_DELETEENTRYSUBMIT = "deleteEntrySubmit";
// General text
    String WELCOME_MESSAGE = "I am a Mobile Infrastructure Client application using the Persistence API";
    String NOT_REGISTERED = "not registered";
// JSP Names
    String INITIAL_JSP = "/jsp/menu.jsp";
    String ADD_JSP = "/jsp/add.jsp";
    String DELETE_JSP = "/jsp/delete.jsp";
// Context attributes
    String CONTEXT_BEAN = "dataBean";
// Initial value for empty strings
    String BLANK_VALUE = " ";
}