| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnu.staldal.lsp.servlet.XSLTExt
public class XSLTExt
Access LSP functions from XSLT stylesheets.
| Method Summary | |
|---|---|
| static java.lang.String | encodeURL(java.lang.Object context,
          java.lang.String url)Encode an URL for Servlet session tracking. | 
| static java.lang.String | formatCustomDateTime(java.lang.Object context,
                     java.lang.String pattern,
                     java.util.Date date)Format a java.util.Date as String using the user's locale with custom format. | 
| static java.lang.String | formatDate(java.lang.Object context,
           java.util.Date date)Format a java.util.Date as String using the user's locale. | 
| static java.lang.String | formatDateTime(java.lang.Object context,
               java.util.Date date)Format a java.util.Date as String using the user's locale. | 
| static java.lang.String | formatTime(java.lang.Object context,
           java.util.Date date)Format a java.util.Date as String using the user's locale. | 
| static boolean | isUserInRole(java.lang.Object context,
             java.lang.String role)Check if user is in role. | 
| static java.lang.String | lang(java.lang.Object context,
     java.lang.String key)Get a localized resource for the user's locale. | 
| static java.lang.String | lang(java.lang.Object context,
     java.lang.String pageName,
     java.lang.String key)Get a localized resource for the user's locale. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static java.lang.String lang(java.lang.Object context,
                                    java.lang.String pageName,
                                    java.lang.String key)
                             throws java.lang.Exception
context - the LSPServletContextpageName - LSP page name, 
                 or null for global resources onlykey - the key
java.lang.Exception - if the LocaleBundleFactory throws any exception
public static java.lang.String lang(java.lang.Object context,
                                    java.lang.String key)
                             throws java.lang.Exception
 Same as lang(context,null,key).
context - the LSPServletContextkey - the key
java.lang.Exception - if the LocaleBundleFactory throws any exception
public static java.lang.String encodeURL(java.lang.Object context,
                                         java.lang.String url)
context - the LSPServletContexturl - the URL to encode
HttpServletResponse.encodeURL(java.lang.String)
public static boolean isUserInRole(java.lang.Object context,
                                   java.lang.String role)
context - the LSPServletContextrole - the role to check
true if user is in the given roleHttpServletRequest.isUserInRole(String)
public static java.lang.String formatDate(java.lang.Object context,
                                          java.util.Date date)
context - the LSPServletContextdate - the date to format
public static java.lang.String formatTime(java.lang.Object context,
                                          java.util.Date date)
context - the LSPServletContextdate - the time to format
public static java.lang.String formatDateTime(java.lang.Object context,
                                              java.util.Date date)
context - the LSPServletContextdate - the date/time to format
public static java.lang.String formatCustomDateTime(java.lang.Object context,
                                                    java.lang.String pattern,
                                                    java.util.Date date)
context - the LSPServletContextpattern - the formatting patterndate - the date/time to format
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||