public class DisplayMessage extends Object
| Constructor and Description |
|---|
DisplayMessage() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getMessageAndClear(javax.servlet.http.HttpServletRequest request)
Get the current message from the session, and remove it from the session
so it won't be displayed again.
|
static String |
getMessageAndClear(javax.servlet.http.HttpSession session)
Get the current message from the session, and remove it from the session
so it won't be displayed again.
|
static void |
setMessage(javax.servlet.http.HttpServletRequest request,
String message)
Store this message on the session.
|
static void |
setMessage(javax.servlet.http.HttpSession session,
String message)
Store this message on the session.
|
public static void setMessage(javax.servlet.http.HttpServletRequest request,
String message)
public static void setMessage(javax.servlet.http.HttpSession session,
String message)
public static String getMessageAndClear(javax.servlet.http.HttpServletRequest request)
public static String getMessageAndClear(javax.servlet.http.HttpSession session)
Copyright © 2021. All rights reserved.