Error Reading Included File Template/jquery/controlheader.ftl
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Datepicker example in struts-2.3.16.3 up vote -2 down vote favorite Here is my code, Struts 2 datepicker with time validation <%@taglib prefix="s" uri="/struts-jquery-tags" %> <%@taglib prefix="s1" uri="/struts-tags" %>
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Struts 2 + Dojo + Datetimepicker up vote 0 down vote favorite One quick question. How can I use the "simple theme" () and "dojo datetimepicker" () together? I have http://stackoverflow.com/questions/24464472/datepicker-example-in-struts-2-3-16-3 read that if you only want to use the simple theme, then manually import all the required dojo files using the code in head.ftl... The thing is all those js are in struts dojo jar file which is included in the class path. How can I include them in the jsp? What should be the whole path? Any example will be helpful. struts2 dojo datetimepicker share|improve this question edited Jan 10 '13 at 5:48 Rais Alam 4,423104381 asked http://stackoverflow.com/questions/6114020/struts-2-dojo-datetimepicker May 24 '11 at 16:56 SmoothCriminel 1691514 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote accepted Performance Tuning 1. Enable Freemarker template caching In Struts versions prior to 2.0.10, you had to copy the /template directory from the Struts 2 jar in your WEB_APP root to utilize Freemarker's built in chaching mechanism in order to achieve similar results. The built in Freemarker caching mechanism fails to properly cache templates when they are retrieved from the classpath. Copying them to the WEB_APP root allows Freemarker to cache them correctly. Freemarker looks at the last modified time of the template to determine if it needs to reload the templates. Resources retrieved from the classpath have no last modified time, so Freemarker will reload them on every request. 2. When overriding a theme, copy all necessary templates to the theme directory. There's a performance cost when a template cannot be found in the current directory. The reason for this is that Struts 2 must check for a template in the current theme first before falling back to the parent theme. In the future, this penalty could be eliminated by implementing a missing template cache in Struts 2. Example YourWebApp |-- WebContent |-- templates |-- ajax |-- controlheader.ftl, datetimepicker.ftl, dojoRequire.js, head.ftl |-- simple |-- [All files] |-- xhtml |-- controlfooter.ftl, controlheader-core.ftl, controlheader.ftl, tooltip.ftl, validation.js
JavaScript AngularJS AJAX JQuery Dojo Web HTML5 CSS PHP Smarty Web 2.0 More… Fun News General Struts 2 Ajax Tutorial with Example by Viral Patel · January 13, 2010 Welcome to the last part of 7 article series of Struts 2 Framework tutorials. In previous article we saw how to implement File Upload functionality in Struts 2. In this article we will see how we can implement Ajax support in a webapplication using Struts2 framework. Struts 2 Tutorials Part 1: Introduction to Struts 2 Part 2: Create Hello World Application in Struts 2 Part 3: Struts 2 Validation Framework Tutorial with Example Part 4: Struts 2 Tiles Plugin Tutorial with Example Part 5: Struts 2 Interceptors Tutorial with Example Part 6: Struts 2 File Upload and Save Example Part 7: Struts 2 Ajax Tutorial with Example AJAX support in Struts 2 Struts 2 provides built-in support to AJAX using Dojo Toolkit library. If you are new to Dojo, you may want to go through the Introduction of DOJO Toolkit. Struts 2 comes with powerful set of Dojo AJAX APIs which you can use to add Ajax support. In order to add Ajax support, you need to add following JAR file in your classpath: struts2-dojo-plugin.jar Also once we add this JAR file, we need to add following code snippet in whatever JSP file we need to add AJAX support. <%@ taglib prefix="sx" uri="/struts-dojo-tags"%> First define the taglib sx which we will use to add AJAX enabled tags.