css-edge.blogspot.com
Struts 2.1.8 - FreeMarker template error! - Expression parameters.pushId is undefined
http://css-edge.blogspot.com/2009/11/struts-218-freemarker-template-error.html
Struts 2.1.8 - FreeMarker template error! Expression parameters.pushId is undefined. I was working on a simple Ajax autocomplete dropdown box and came across this error on Struts 2.1.8. Somehow all Struts 2 Freemarker errors are not clear at telling what is the root cause of a problem. I tried searching for the solution and found many other people are facing this so thought of making a note of it. Below is the JSP I am using for populating a Autocomplete drop down. Java backtrace for programmers:. At fre...
css-edge.blogspot.com
AJAX Example code showing XML response in a DIV tag
http://css-edge.blogspot.com/2009/11/ajax-example-code-showing-xml-response.html
AJAX Example code showing XML response in a DIV tag. Here is the example code which demonstrates how we can show the response from a XML file to the DIV tag. . Contents of MyPage.html are like below. Using responseText with innerHTML. 160; . 160; . 160; onclick="startRequest();"/. 160; . 160; . Notice the line in Javascript. Document.getElementById("results").innerHTML = xmlHttp.responseText;. 160;This is doing all the magic for you. Contents of reponse.xml. 160; . 160; . 02/01 - ...
css-edge.blogspot.com
How can you set devMode to dynamically load struts.xml file in Struts 2?
http://css-edge.blogspot.com/2009/11/how-can-you-set-devmode-to-dynamically.html
How can you set devMode to dynamically load struts.xml file in Struts 2? Element has a name. Attribute and a value. Attribute. The struts. Setting determines whether or not the Struts. Application is in development mode. By default, the value is false,. Meaning the application is not in development mode. Once you set this attribute to true. Struts will check the config file for every request. This will save lot of development time as you need not restart server for struts.xml changes. Struts 1 vs Struts 2.
css-edge.blogspot.com
Spring Webflow - FormAction.doValidate() isn't called when there is no validator configured
http://css-edge.blogspot.com/2009/12/spring-webflow-formactiondovalidate-isn.html
Spring Webflow - FormAction.doValidate() isnt called when there is no validator configured. This post is relevant for the Spring Webflow 1.x users. I have been breaking my head from 2-3 days over this problem and was able to crack it today. I did some search on google and found that this is a open Bug on Spring Webflow ( Spring Webflow 1.0.3 Bug SWF-397. What is the issues? The problem occurs when you have a FormAction bean configured in your application without a validator e.g. What is the workaround?
css-edge.blogspot.com
What are the status values you need to deal with when working with AJAX
http://css-edge.blogspot.com/2009/11/what-are-status-values-you-need-to-deal.html
What are the status values you need to deal with when working with AJAX. The XMLHttpRequest object has few properties. Onreadystatechange: The event handler that fires at every state change, typically a call to a JavaScript function. ReadyState: The state of the request. The five possible values are 0 = uninitialized, 1 = loading, 2 = loaded, 3 = interactive, and 4 = complete. ResponseText: The response from the server as a string. Here is a example code which demonstrates how these atributes can be used.
css-edge.blogspot.com
How to Create an Instance of the XMLHttpRequest Object - AJAX
http://css-edge.blogspot.com/2009/11/how-to-create-instance-of.html
How to Create an Instance of the XMLHttpRequest Object - AJAX. XMLHttpRequest is backbone of AJAX framework. We have to. First create an XMLHttpRequest object using JavaScript before we. Can use the object to send request. Y. 160; if (window.ActiveXObject) {. 160; xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");. 160; }. 160; else if (window.XMLHttpRequest) {. 160; xmlHttp = new XMLHttpRequest();. 160; }. How to Create an Instance of the XMLHttpRequest Object - AJAX. 12/14 - 12/21...
css-edge.blogspot.com
Struts 2 AJAX Autocomplete dropdown example
http://css-edge.blogspot.com/2009/12/struts-2-ajax-autocomplete-dropdown.html
Struts 2 AJAX Autocomplete dropdown example. I started playing with struts 2.0.14 showcase application and thought of extracting a simple AJAX Autocomplete dropdown example from it. In this example I am trying to create a autocomplete textbox and when you select one value from this autocomplete drop down the other will populate accordingly. This post is for developers who are new to Struts 2. Struts 2.0.14 - Download Struts. Apache-tomcat-6.0.18 - Download Tomcat. Java version "1.6.0 10". This is a actio...
css-edge.blogspot.com
Struts 2 Development - FreeMarker template error!
http://css-edge.blogspot.com/2009/11/struts-2-development-freemarker.html
Struts 2 Development - FreeMarker template error! I am getting following error while using Struts 2 application. It does not trace back to my code and my JSP syntax is correct too. Dont know what is causing this, any help will be appreciated. I dont see any information or answers to this on google. Expression error is undefined on line 35, column 4 in template/simple/actionerror.ftl. Error} [on line 35, column 2 in template/simple/actionerror.ftl]. Java backtrace for programmers:. At freemarker.core&...
css-edge.blogspot.com
Backporting Struts 2 to JDK1.4 or JDK 1.3 using Retrotranslator
http://css-edge.blogspot.com/2009/11/backporting-struts-2-to-jdk14-or-jdk-13.html
Backporting Struts 2 to JDK1.4 or JDK 1.3 using Retrotranslator. Struts 2 framework and its dependencies available currently are compiled using JDK 1.5 and if you want to use same framework on JDK1.4 then you will require to backport these jars. Struts 2 framework core jars and its plugin jars can be translated to JDK 1.4 or 1.3 using Retrotranslator utility. Retrotranslator is a open source project which does this translation. Here are the steps to create the backport jars for JDK 1.4 or JDK 1.3. Java -...