| java.lang.Object org.apache.struts.util.ResponseUtils
ResponseUtils | public class ResponseUtils (Code) | | General purpose utility methods related to generating a servlet response in
the Struts controller framework.
version: $Rev: 471754 $ $Date: 2005-08-21 14:46:28 -0400 (Sun, 21 Aug 2005) version: $ |
Method Summary | |
public static String | encodeURL(String url) URLencodes a string assuming the character encoding is UTF-8. | public static String | encodeURL(String url, String enc) Use the new URLEncoder.encode() method from Java 1.4 if available, else
use the old deprecated version. | public static String | filter(String value) Filter the specified string for characters that are senstive to HTML
interpreters, returning the string with these characters replaced by
the corresponding character entities. |
encodeURL | public static String encodeURL(String url)(Code) | | URLencodes a string assuming the character encoding is UTF-8.
Parameters: url - String The encoded url in UTF-8 |
encodeURL | public static String encodeURL(String url, String enc)(Code) | | Use the new URLEncoder.encode() method from Java 1.4 if available, else
use the old deprecated version. This method uses reflection to find
the appropriate method; if the reflection operations throw exceptions,
this will return the url encoded with the old URLEncoder.encode()
method.
Parameters: enc - The character encoding the urlencode is performed on. String The encoded url. |
filter | public static String filter(String value)(Code) | | Filter the specified string for characters that are senstive to HTML
interpreters, returning the string with these characters replaced by
the corresponding character entities.
Parameters: value - The string to be filtered and returned |
|
|