?
Solved

Use Struts 1.0.2 and the Dojo Ajax Framework together?

Posted on 2007-07-19
1
Medium Priority
?
494 Views
Last Modified: 2013-11-24
Is it possible to use Struts 1.0.2 and the Dojo framework?
0
Comment
Question by:sutorius
1 Comment
 
LVL 14

Accepted Solution

by:
boonleng earned 2000 total points
ID: 19528285
Yes, Dojo can be independently integrate with any framework.

Example:
<script>
var kw = {
      url: "<html:rewrite forward="sample_validate"/>",
      load: function(type, data, evt){
            document.myForm.myBox.value = data;
      },
      error: function(type, data, evt){
            alert("Error: " + data);
      },
        formNode: dojo.byId("myForm");
};
dojo.io.bind(kw);
</script>
<html:form action="sample.do" styleId="myForm">  
<html:text property="fullName"/>
<html:text property="email"/>
</html:form>

Action Class:

    public ActionForward execute(ActionMapping mapping, ActionForm form,
            HttpServletRequest request, HttpServletResponse response)
            throws Exception {

        String email = request.getParameter("email");
        ...
        return null;
    }
}
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question