偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

Struts2配置文件-struts.xml

開發(fā) 后端
struts.xml配置文件結(jié)構(gòu)如下

Xml代碼


< ?xml version="1.0" encoding="UTF-8" ?>  
http://struts.apache.org/dtds/struts-2.0.dtd"> 
 
< BEAN name="" type="" static="" optional="" scope="">< /BEAN> 
< /CONSTANT> 
< INCLUDE file="">< /INCLUDE> 
 
    < ACTION name="" method="" converter=""> 
    < DEFAULT-ACTION-REF name="">< /DEFAULT-ACTION-REF> 
    < DEFAULT-CLASS-REF>< /DEFAULT-CLASS-REF> 
    < DEFAULT-INTERCEPTOR-REF name=""> 
    < GLOBAL-EXCEPTION-MAPPINGS> 
        < EXCEPTION-MAPPING name="" exception="" result=""> 
            < PARAM name=""> 
        < /EXCEPTION-MAPPING> 
     
    < GLOBAL-RESULTS> 
        < RESULT name="" type="">< PARAM name=""> 
    < /GLOBAL-RESULTS> 
     
        < INTERCEPTOR name=""> 
            < PARAM name=""> 
        < /INTERCEPTOR> 
        < INTERCEPTOR-STACK name=""> 
            < INTERCEPTOR-REF name=""> 
                < /PARAM> 
            < /INTERCEPTOR-REF> 
        < /INTERCEPTOR-STACK> 
    < /INTERCEPTORS> 
    < RESULT-TYPES> 
        < RESULT-TYPE name="" default="false"> 
            < PARAM name=""> 
        < /RESULT-TYPE> 
    < /RESULT-TYPES> 
< /PACKAGE> 
< /STRUTS> 


1、bean節(jié)點

引用

Struts2配置"" 

bean元素需要class屬性指定要被創(chuàng)建或者使用的java類,一個java bean1可能是以下兩種:

a、被框架的容器創(chuàng)建然后注入到框架的內(nèi)部對象
      

對象注入方式,通常伴隨著type屬性,告訴容器這個java bean實現(xiàn)了哪個接口

b、使用值注入到自身的靜態(tài)方法中
     

值注入方式,對于允許不是容器創(chuàng)建的對象去接收框架的常量來說是不錯的.對象使用值注入必須定義靜態(tài)屬性

【編輯推薦】

  1. 在Eclipse中開發(fā)struts應(yīng)用程序
  2. 手把手教你在Eclipse中配置開發(fā)Struts
  3. Eclipse下開發(fā)struts完整解決亂碼問題
  4. Struts相關(guān)背景介紹
  5. 使用Easy Struts for Eclipse開發(fā)Struts
責(zé)任編輯:張燕妮 來源: javaeye.com
相關(guān)推薦

2009-06-25 15:26:25

Struts2教程struts.xml常

2009-02-04 11:37:15

2009-06-05 10:52:45

struts2深入詳解配置文件

2009-06-05 10:55:07

struts2 web

2009-07-29 09:54:34

struts2和str

2009-06-25 15:11:28

Struts2教程Struts2程序

2009-06-05 09:40:59

2009-02-04 10:51:07

2009-06-25 15:50:03

Struts2教程上傳任意多個文件

2009-07-03 09:35:57

Struts2 JSP

2009-06-05 10:35:02

struts.prop配置文件

2009-06-04 09:41:50

struts2上傳文件

2009-02-04 14:00:59

2009-06-05 10:05:50

struts menustruts2

2009-06-25 16:04:30

2009-07-14 17:10:44

struts2webwork

2009-06-04 09:20:19

struts2 if標(biāo)使用

2009-06-03 14:19:34

Struts2Guice

2013-07-18 15:09:27

2011-08-19 13:13:14

struts2Java
點贊
收藏

51CTO技術(shù)棧公眾號