当前位置:编程学习 > JSP >>

Struts 配置骨架



<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Config 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd"
>
<struts-config>
<data-sources>
    
<data-source>
        
<set-property     name="${}" value="${}"/> 
    
</data-source>
</data-sources>

<form-beans>
    
<form-bean name="${}" type="${}"> 
        
<form-property name="${}" type="${}"/>
    
</form-bean>
</form-beans>

<global-exceptions>
    
<exception type="${}" key="${}" path="${}"/>
</global-exceptions>

<global-forwards>
    
<forward name="${}" path="${}"/> 
</global-forwards>

<action-mappings>
<action path="${}" type="${}" name="${}" scope="${}" validate="${}" input="${}">
    
<forward
    
name="${}"
    path
="${}"/>
    
<exception
    
type="${}"
    key
="${}"
    path
="${}"/>
</action>
</action-mappings>

<controller processorClass="${}" />
    
<form-beans>
    
<form-bean
    
name="${}"
    type
="${}">
        
<form-property
        
name="${}"
        type
="${}"/>
    
</form-bean>
</form-beans>
<global-exceptions>

<exception
type="${}"
key
="${}"
path
="${}"/>
</global-exceptions>

<global-forwards>
    
<forward name="${}" path="${}"/>
</global-forwards>

<action-mappings>
    
<action path="${}" type="${}" name="${}" scope="${}" validate="${}" input="${}">
        
<forward name="${}" path="${}"/> 
        
<exception type="${}" key="${}" path="${}"/> 
    
</action>
</action-mappings>

<controller processorClass="${}" />

<message-resources parameter="${}"/>

<plug-in className="${}">
    
<set-property property="${}" value="${}"/>
</plug-in>

</struts-config>

 

Struts 配置骨架,有误之处还望大家指出!(*^__^*) 嘻嘻…… 



补充:Jsp教程,Java基础

CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,