alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Struts example source code file (struts-jsf.xml)

This example Struts source code file (struts-jsf.xml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Struts tags/keywords

apache, apache, configuration, doctype, doctype, foundation//dtd, foundation//dtd, public, software, software, struts

The Struts struts-jsf.xml source code

<!DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
    "http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
  <package name="jsf" extends="jsf-default" namespace="/jsf">

      <result-types>
          <result-type name="jsf" class="org.apache.struts2.jsf.FacesResult" />
      </result-types>

    <interceptors>
      <interceptor-stack name="jsfFullStack">
        <interceptor-ref name="params" />
        <interceptor-ref name="basicStack"/>
        <interceptor-ref name="jsfStack"/>
      </interceptor-stack>
    </interceptors>

    <default-interceptor-ref name="jsfFullStack"/>

  </package>
  
  <package name="jsf.employee" extends="jsf" namespace="/jsf/employee">
  
    <action name="list" class="org.apache.struts2.showcase.jsf.JsfEmployeeAction" method="list">
      <result name="success" type="jsf" />
    </action>
    <action name="edit" class="org.apache.struts2.showcase.jsf.JsfEmployeeAction">
      <result name="success" type="jsf" />
    </action>
    <action name="delete" class="org.apache.struts2.showcase.action.EmployeeAction" method="delete">
      <result name="error" type="redirect">list.action
      <result type="redirect">list.action
    </action>
  
  </package>

</struts>

Other Struts examples (source code examples)

Here is a short list of links related to this Struts struts-jsf.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.