Doff JSP tag library Doff 1.7.2 doff http://doff.alweb.org/jsp/taglib Turns all URLs and email addresses into specified text into clickable links. The specified text must be XML escaped. autoLink org.alweb.doff.jsp.Functions java.lang.String autoLink(java.lang.String) ${doff:autoLink(fn:escapeXml(text))} Turns all email addresses into specified text into clickable links. The specified text must be XML escaped. autoLinkMailAddress org.alweb.doff.jsp.Functions java.lang.String autoLinkMailAddress(java.lang.String) ${doff:autoLinkMailAddress(fn:escapeXml(text))} Turns all URLs into specified text into clickable links. The specified text must be XML escaped. autoLinkURL org.alweb.doff.jsp.Functions java.lang.String autoLinkURL(java.lang.String) ${doff:autoLinkURL(fn:escapeXml(text))} Call a method on a specified object even if method's name doesn't starts with get. call org.alweb.doff.jsp.Functions java.lang.Object call(java.lang.Object, java.lang.String) ${doff:call(server, 'isActive')} Escape specified javascript string. escapeJavascript org.alweb.doff.jsp.Functions java.lang.String escapeJavascript(java.lang.String) ${doff:escapeJavascript(jsString)} Returns text transformed into HTML using simple formatting rules. Two or more consecutive newlines(\n\n) are considered as a paragraph and wrapped in <p> tags. One newline (\n) is considered as a linebreak and a <br /> tag is appended. This method does not remove the newlines from the text and specified text must be XML escaped. formatText org.alweb.doff.jsp.Functions java.lang.String formatText(java.lang.String) ${doff:formatText(fn:escapeXml(text))} Joins a collection of objects using #toString() method on each object. join org.alweb.doff.jsp.Functions java.lang.String join(java.util.Collection, java.lang.String) ${doff:join(items, ', ')} Joins an array of objects using #toString() method on each object. joinArray org.alweb.doff.jsp.Functions java.lang.String joinArray(java.lang.Object[], java.lang.String) ${doff:joinArray(items, ', ')} Returns the current date. now org.alweb.doff.jsp.Functions java.util.Date now() <fmt:formatDate value="${doff:now()}" /> Truncates a string (you can specify the max length and the replacement). truncate org.alweb.doff.jsp.Functions java.lang.String truncate(java.lang.String, int, java.lang.String) ${doff:truncate(book.description, 100, '...')} Arg tag is used for adding extra URL informations to URL tag. You can specify your argument into tag body or into value attribute. arg org.alweb.doff.jsp.ArgTag JSP The value of the argument. value false true Creates an hidden input for forms that have an action's method different to POST. This tag doesn't accept GET or POST method. methodInput org.alweb.doff.jsp.MethodInputTag JSP The name of the method (case-insensitive). method true true Tag to print a simple pagination, with only the previous link, current page, page count and next link. simplePagination org.alweb.doff.jsp.SimplePaginationTag JSP The pagination object used for rendering. Default value is the request attribute called: 'pagination'. pagination false true The pattern to use for displaying text between "Next page" and "Previous page". The string %{page} is replaced by page index and the string %{count} is replaced by page count. The default value is "%{page} / %{count}". pattern false true Determines if it is necessary to print pagination if there is less than 2 pages. Default value is false. printIfEmpty false true The text for previous page. Default value is: "Previous page". The text must be XML escaped. previousText false true The text for next page. Default value is: "Next page". The text must be XML escaped. nextText false true The controller's name. If not specified, the current controller will be used. controller false true The action's name (default: index). action false true Extra informations of the URL separated by a space and a comma. You can also use arg tag for adding extra informations to URL. This attribute is ignored if you specify manually URL. args false true "true" if you controller's action URL will be complete (with protocol, host and port). Default value is false. complete false true Tag to print a complete pagination with previous and next links and page indices links. fullPagination org.alweb.doff.jsp.FullPaginationTag JSP The pagination object used for rendering. Default value is the request attribute called: 'pagination'. pagination false true The max visible page links to print. A negative value or 0 means that all links will be displayed. Default value is 6. maxVisiblePages false true The bound link count if there is more pages than expected. Default value is 2. boundLinkCount false true Determines if it is necessary to print pagination if there is less than 2 pages. Default value is false. printIfEmpty false true The text for previous page. Default value is: "Previous page". The text must be XML escaped. previousText false true The text for next page. Default value is: "Next page". The text must be XML escaped. nextText false true The controller's name. If not specified, the current controller will be used. controller false true The action's name (default: index). action false true Extra informations of the URL separated by a space and a comma. You can also use arg tag for adding extra informations to URL. This attribute is ignored if you specify manually URL. args false true "true" if you controller's action URL will be complete (with protocol, host and port). Default value is false. complete false true Creates a link to an action with an on-the-fly, JS-based POST-method form creation over it. Especially useful for "destructive" methods, that should be restricted to POST access as per the W3C's (and many others') recommendations. postLink org.alweb.doff.jsp.PostLinkTag JSP The controller's name. If not specified, the current controller will be used. controller false true The action's name (default: index). action false true Base URL to be processed if you want to specify manually an URL. This URL can be absolute or relative. If relative it must not contain context and servlet path. url false true The method of the request, it can be PUT, DELETE,... The case is not important, default value is POST. The method can't be GET. method false true Confirmation message to display (defaults to "Are you sure?"). confirm false true Extra informations of the URL separated by a space and a comma. You can also use arg tag for adding extra informations to URL. This attribute is ignored if you specify manually URL. args false true "true" if you controller's action URL will be complete (with protocol, host and port). Default value is false. complete false true Returns the relative URL of a public document (stylesheets, javascripts,...). publicURL org.alweb.doff.jsp.PublicURLTag JSP The document path. value false true Escape mode of the returned URL. Available modes are "xml" and "javascript". You can specify null or an empty string for disabling this feature. Default value is "xml". escape false true "true" if you controller's action URL will be complete (with protocol, host and port). Default value is false. complete false true The variable to store returned URL into. var false false Provides a tag to clean white spaces into JSPs. strip org.alweb.doff.jsp.StripTag JSP Set this attribute to true in order to trim each line into this tag. Default value is true. trim false true Set this attribute to true in order to keep each line delimiters Default value is false. keepLines false true Returns the URL of a controller's action. url org.alweb.doff.jsp.URLTag JSP The controller's name. If not specified, the current controller will be used. controller false true The action's name (default: index). action false true Escape mode of the returned URL. Available modes are "xml" and "javascript". You can specify null or an empty string for disabling this feature. Default value is "xml". escape false true Extra informations of the URL separated by a space and a comma. You can also use arg tag for adding extra informations to URL. args false true "true" if you controller's action URL will be complete (with protocol, host and port). Default value is false. complete false true The variable to store returned URL into. var false false