Author: tmjee Date: Thu Jun 8 08:30:23 2006 New Revision: 412775 URL: http://svn.apache.org/viewvc?rev=412775&view=rev Log: - added a freemarker manager example into show case
Added: struts/action2/trunk/apps/showcase/src/main/webapp/freemarker/ struts/action2/trunk/apps/showcase/src/main/webapp/freemarker/customFreemarkerManagerUsage.ftl struts/action2/trunk/apps/showcase/src/main/webapp/freemarker/index.jsp (with props) Added: struts/action2/trunk/apps/showcase/src/main/webapp/freemarker/customFreemarkerManagerUsage.ftl URL: http://svn.apache.org/viewvc/struts/action2/trunk/apps/showcase/src/main/webapp/freemarker/customFreemarkerManagerUsage.ftl?rev=412775&view=auto ============================================================================== --- struts/action2/trunk/apps/showcase/src/main/webapp/freemarker/customFreemarkerManagerUsage.ftl (added) +++ struts/action2/trunk/apps/showcase/src/main/webapp/freemarker/customFreemarkerManagerUsage.ftl Thu Jun 8 08:30:23 2006 @@ -0,0 +1,26 @@ + +<html> +<head> + <title>Showcase - Freemarker - CustomFreemarkerManager Usage</title> +</head> +<body> + <h1>Custom Freemarker Manager Usage</h1> + + <p/> + This page shows a simple example of using a custom freemarker manager. + The custom freemarker manager put into freemarker model an util classed + under the name 'customFreemarkerManagerUtil'. so one could use + <p/> + <ul> + <li>$ { customFreemarkerManagerUtil.getTodayDate() } - to get today's date</li> + <li>$ { customFreemarkerManagerUtil.todayDate } - to get today's date</li> + <li>$ { customFreemarkerManagerUtil.getTimeNow() } - to get the time now</li> + <li>$ { customFreemarkerManagerUtil.timeNow } - to get the time now</li> + </ul> + + Today's Date = ${customFreemarkerManagerUtil.todayDate}<br/> + Time now = ${customFreemarkerManagerUtil.getTimeNow()}<br/> + +</body> +</html> + Added: struts/action2/trunk/apps/showcase/src/main/webapp/freemarker/index.jsp URL: http://svn.apache.org/viewvc/struts/action2/trunk/apps/showcase/src/main/webapp/freemarker/index.jsp?rev=412775&view=auto ============================================================================== --- struts/action2/trunk/apps/showcase/src/main/webapp/freemarker/index.jsp (added) +++ struts/action2/trunk/apps/showcase/src/main/webapp/freemarker/index.jsp Thu Jun 8 08:30:23 2006 @@ -0,0 +1,20 @@ + +<[EMAIL PROTECTED] prefix="saf" uri="/struts-action" %> + +<html> +<head> + <title>Showcase - Freemarker</title> +</head> +<body> + + <ul> + <li> + <saf:url id="url" action="customFreemarkerManagerDemo" namespace="/freemarker" /> + <saf:a href="%{#url}">Demo of usage of a Custom Freemarker Manager</saf:a> + </li> + </ul> + +</body> +</html> + + Propchange: struts/action2/trunk/apps/showcase/src/main/webapp/freemarker/index.jsp ------------------------------------------------------------------------------ svn:eol-style = native