MSPGetMessages gives a way to obtain any messages that have been generated by evaluations in the current kernel. It returns a list of strings, where each string contains the formatted contents of the message.
This function cannot be demonstrated in a normal evaluation; it must be part of a running server. The example Messages.jsp demonstrates the use of MSPGetMessages.