public class JSPHelper extends ServletHelper
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
JSPHelper(javax.servlet.http.HttpServletRequest httpReq)
This is the constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String | getParameter(javax.servlet.http.HttpServletRequest req, java.lang.String paramName)
This method returns a parameter from the request object as String object.
|
java.lang.String | getParameter(java.lang.String paramName)
This method returns a parameter from the request object as String object.
|
static java.lang.String[] | getParameterValues(javax.servlet.http.HttpServletRequest req, java.lang.String paramName)
This method returns a parameter from the request object as an array of String objects.
|
java.lang.String[] | getParameterValues(java.lang.String paramName)
This method returns a parameter from the request object as an array of String objects.
|
static java.util.PropertyResourceBundle | getPropertyResourceBundle(javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest request)
This method returns the PropertyResourceBundle object for the given JSP in the runtime default locale.
|
static java.util.PropertyResourceBundle | getPropertyResourceBundle(javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest request, java.util.Locale locale)
This method returns the PropertyResourceBundle object for the given JSP in the given locale.
|
static java.util.PropertyResourceBundle | getPropertyResourceBundle(java.lang.String sfilename)
This method returns the PropertyResourceBundle object for the given JSP in the runtime default locale.
|
static java.util.PropertyResourceBundle | getPropertyResourceBundle(java.lang.String sfilename, javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest request)
This method returns the PropertyResourceBundle object for the given JSP in the runtime default locale.
|
static java.util.PropertyResourceBundle | getPropertyResourceBundle(java.lang.String sfilename, javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest request, java.util.Locale locale)
This method returns the PropertyResourceBundle object for the given JSP in the given locale.
|
static java.util.ResourceBundle | getResourceBundle(javax.servlet.http.HttpServletRequest request)
This method returns the ResourceBundle object for the given JSP in the default runtime locale.
|
static java.util.ResourceBundle | getResourceBundle(javax.servlet.http.HttpServletRequest request, java.util.Locale locale)
This method returns the ResourceBundle object for the given JSP in the given locale.
|
static java.util.ResourceBundle | getResourceBundle(java.lang.String sfilename, javax.servlet.http.HttpServletRequest request)
This method returns the ResourceBundle object for the given JSP in the default runtime locale.
|
static java.util.ResourceBundle | getResourceBundle(java.lang.String sfilename, javax.servlet.http.HttpServletRequest request, java.util.Locale locale)
This method returns the ResourceBundle object for the given JSP in the given locale.
|
static java.lang.String | htmlTextEncoder(java.lang.String iString)
This method encodes a String for HTML.
|
static void | markTransactionToRollback()
This method marks a transaction for rollback when an exception is caught in a JSP page.
|
static void | rollbackTransaction()
This method rolls back the current transaction.
|
void | rollbackTransaction(boolean flag)
This method rolls back the current transaction and also marks the current page to be not cachable.
|
static void | rollbackTransaction(javax.servlet.http.HttpServletRequest req, boolean flag)
This method rolls back the current transaction and also marks the current page to be not cachable.
|
void | setCachePage(boolean flag)
Deprecated.
This method has been replaced by setUncacheable.
|
void | setUncacheable(boolean flag)
This method sets a flag to indicate whether the output page is uncacheable.
|
static void | setUncacheable(CommandContext commandContext, boolean flag)
This method sets a flag to indicate whether the output page is uncacheable.
|
static void | setUncacheable(javax.servlet.http.HttpServletRequest req, boolean flag)
This method sets a flag to indicate whether the output page is uncacheable.
|
public static final java.lang.String COPYRIGHT
public JSPHelper(javax.servlet.http.HttpServletRequest httpReq)
public java.lang.String getParameter(java.lang.String paramName)
public static java.lang.String getParameter(javax.servlet.http.HttpServletRequest req, java.lang.String paramName)
public java.lang.String[] getParameterValues(java.lang.String paramName)
public static java.lang.String[] getParameterValues(javax.servlet.http.HttpServletRequest req, java.lang.String paramName)
public static java.util.PropertyResourceBundle getPropertyResourceBundle(java.lang.String sfilename) throws java.io.IOException
public static java.util.PropertyResourceBundle getPropertyResourceBundle(java.lang.String sfilename, javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest request) throws java.io.IOException
Usage: java.util.ResourceBundle thisResources = com.ibm.commerce.server.JSPHelper.getPropertyResourceBundle("MyProperties", getServletContext(), request);
public static java.util.PropertyResourceBundle getPropertyResourceBundle(java.lang.String sfilename, javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest request, java.util.Locale locale) throws java.io.IOException
Usage: java.util.ResourceBundle thisResources = com.ibm.commerce.server.JSPHelper.getPropertyResourceBundle("MyProperties", getServletContext(), request, locale);
public static java.util.PropertyResourceBundle getPropertyResourceBundle(javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest request) throws java.io.IOException
Usage: java.util.ResourceBundle thisResources = com.ibm.commerce.server.JSPHelper.getPropertyResourceBundle(getServletContext(), request);
public static java.util.PropertyResourceBundle getPropertyResourceBundle(javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest request, java.util.Locale locale) throws java.io.IOException
Usage: java.util.ResourceBundle thisResources = com.ibm.commerce.server.JSPHelper.getPropertyResourceBundle(getServletContext(), request, locale);
public static java.util.ResourceBundle getResourceBundle(java.lang.String sfilename, javax.servlet.http.HttpServletRequest request)
public static java.util.ResourceBundle getResourceBundle(java.lang.String sfilename, javax.servlet.http.HttpServletRequest request, java.util.Locale locale)
public static java.util.ResourceBundle getResourceBundle(javax.servlet.http.HttpServletRequest request)
public static java.util.ResourceBundle getResourceBundle(javax.servlet.http.HttpServletRequest request, java.util.Locale locale)
public static java.lang.String htmlTextEncoder(java.lang.String iString)
public static void markTransactionToRollback()
public static void rollbackTransaction()
public void rollbackTransaction(boolean flag)
public static void rollbackTransaction(javax.servlet.http.HttpServletRequest req, boolean flag)
public void setCachePage(boolean flag)
public static void setUncacheable(javax.servlet.http.HttpServletRequest req, boolean flag)
public static void setUncacheable(CommandContext commandContext, boolean flag)
public void setUncacheable(boolean flag)