|
Orion Util Taglibrary Deployment 1. Download the Util Taglib here. 2. Put the Util Taglib in your web applications WEB-INF/lib directory. 3. Reference the Util Taglib in your web applications configuration file (web.xml) like this:
4. In your JSP, reference the taglib like this:
Overview This tag-library contains general utility actions such as iterating constructs and similar. It is free to use and redistribute. <util:displayCurrency amount="<%=Double%>" { locale="<%=Locale%>" } /> Formats a given amount as currency for a given Locale. If Locale is not specified, the Locale found in the request will be used. If Locale is not found in the request, the system default Locale will be used. amount - the amount to format Example usage:
<util:displayDate date="<%=Date%>" { locale="<%=Locale%>" } /> Formats a given date for a given Locale. If Locale is not specified, the system default Locale will be used. date - the date to format Example usage:
<util:displayNumber number="<%=Double%>" { locale="<%=Locale%>" } { format="<%=Format%>" } /> Formats a given number for a given Locale and Format. If Locale is not specified, the system default Locale will be used. number - the number to format Example usage:
<util:ifInRole role="<%=String%>" { include="<%=Boolean%>" } > Includes the body if the user is in the specified role. role - the Role to check if user is in Example usage:
<util:iterate id="String" type="String" collection="<%=Collection%>" {max="<%=Integer%>"} > Iterates over the finder results from a home id - the variable to use for referencing the bean. Accessable inside the Tag Example usage:
<util:lastModified { locale="<%=Locale%>" } /> Displays the date the current file was last modified using a given Locale. If Locale is not specified, the Locale found in the request will be used. If Locale is not found in the request, the system default Locale will be used. locale - a optional Locale Example usage:
<util:sendMail { from="<%=String%>" } { to="<%=String%>" } { cc="<%=String%>" } { bcc="<%=String%>" } { subject="<%=String%>" } { mimeType="<%=String%>" } { session="<%=String%>" } > Sends a mail using the given Mail Session. If no Session is given, the default Session is used. from - a optional sender Example usage:
Suggestions can be sent to info@orionserver.com. |