Spring Webflow - FormAction.doValidate() isn't 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)

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.

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.

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.

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.

How can you set devMode to dynamically load struts.xml file in Struts 2?

The constant element has a name attribute and a value attribute. The struts.devMode 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.

AJAX Example code showing XML response in a DIV tag

This is an example code which demonstrates how we can show the response from a XML file to the DIV tag.

<html>
<head>
<title>Using responseText with innerHTML</title>
 
<script type="text/javascript">
var xmlHttp;
 
function createXMLHttpRequest() {
    if (window.ActiveXObject) {
        xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
    else if (window.XMLHttpRequest) {
        xmlHttp = new XMLHttpRequest();
    }
}
 
function startRequest() {
    createXMLHttpRequest();
    xmlHttp.onreadystatechange = handleStateChange;
    xmlHttp.open("GET", "response.xml", true);
    xmlHttp.send(null);
}
 
function handleStateChange() {
    if(xmlHttp.readyState == 4) {
        if(xmlHttp.status == 200) {
            document.getElementById("results").innerHTML = xmlHttp.responseText;
        }
    }
}
</script>
</head>
 
<body>
    <form action="#">
        <input type="button" value="Search"
                onclick="startRequest();"/>
    </form>
    <div id="results"></div>
</body>
</html>


Notice the line in Javascript.

document.getElementById("results").innerHTML = xmlHttp.responseText;

This is doing all the magic for you.

Below are the contents of reponse.xml

<table border="1">
    <tbody>
        <tr>
            <th>My Name</th>
            <th>Location</th>
            <th>Age</th>
        </tr>
        <tr>
            <td>John</td>
            <td>NH</td>
            <td>20</td>
        </tr>
        <tr>
            <td>Peter</td>
            <td>CA</td>
            <td>25</td>
        </tr>
        <tr>
            <td>Hary</td>
            <td>NC</td>
            <td>33</td>
        </tr>
    </tbody>
</table>


Keep both the files in the same directory on server and run it.

Search Web......