About Guided Tour Online Demo Trial Version Requirements
Documents Configuration examples TagLib Reference Useful Links
Customer Support
Updates Forums Contact Services
Licensing Sales FAQ Buy Online
buy online   |   about us   |   german version  

» 2. Derivation of the Action class for the Struts adapter

In our tree, we want to display product groups and products. Therefore, the action class which takes care of the loading and filling of the TreeControl must have the nomenclature "ProductTreeBrowseAction".

The action class is then derived from the class FWAction, which encapsulates the Struts-action class and extends with functionalities of the presentation framework. Instead of the execute()-method, the doExecute()-method is called. On calling, it gets the ActionContext, through which the access to additional objects such as the Request- Session- and Response-object is capsulated.

import javax.servlet.ServletException;


public class ProductTreeBrowseAction extends FWAction {

     * @see
    public void doExecute(ActionContext ctx)
        throws IOException, ServletException {
        // In the next chapter, we will instantiate
        // our TreeControls with the DisplayData

back   |   continue to step 3

Impressum | This product includes software developed by the Java Apache Project
ListControl TreeControl TreeListControl TabSetControl Form Tags MenuControl Print version Live demo Configuration