Tuesday, July 19, 2011

Struts - Step2. Elements in struts-config.xml and their ordering

The following is the order of the elements in which they has to be defined in the struts-config.xml.

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE struts-config PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
    "http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd">

<struts-config>

    <display-name>Struts Tutorial</display-name>

    <description>Struts Tutorial</description>

    <!--
    <form-beans></form-beans>
    
    <global-exceptions></global-exceptions>
    
    <global-forwards></global-forwards>
    
    <action-mappings></action-mappings>
    
    <controller></controller>
    
    <message-resources parameter=""></message-resources>
    
    <plug-in className=""></plug-in>
    -->
</struts-config>

No comments:

Post a Comment