国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
struts2資料
The framework uses a number of properties that can be changed to fityour needs. To change any of these properties, specify the property keyand value in an struts.properties file. The properties file can be locate anywhere on the classpath, but it is typically found under /WEB-INF/class

Constant Configuration

Constants provide a simple way to customize a Struts application bydefining key settings that modify framework and plugin behavior. Thereare two key roles for constants. First, they are used to overridesettings like the maximum file upload size or whether the Strutsframework should be in "devMode" or not. Second, they specify which Bean, among multiple implementations of a given type, should be chosen.

Constants can be declared in multiple files. By default, constantsare searched for in the following order, allowing for subsequent filesto override previous ones:

  1. struts-default.xml
  2. struts-plugin.xml
  3. struts.xml
  4. struts.properties
  5. web.xml

The struts.properties file is provided for backward-compatiblity with WebWork.


Interceptor



  • The LoggingInterceptor simply logs before and after executing the rest of the ActionInvocation.
  • The TimerInterceptor times the execution of the remainder of the ActionInvocation.

The StaticParametersInterceptor and Parameters Interceptor populate your Action fields during the ActionInvocation execution.

  • The StaticParametersInterceptor applies the parameters defined in the Action configuration with the <param> elements.
  • The ParametersInterceptor populates the Action with the parameters passed in as part of the request.

The StaticParametersInterceptor should be applied before theParametersInterceptor so that the static parameters may be set as thedefaults and overridden by the request parameters.


本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊舉報。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
Struts學(xué)習(xí)筆記(一)
struts2.0
struts 2 監(jiān)聽器
Maven 入門 (2)—— 創(chuàng)建Maven項目
Struts2工作原理
修改action的后綴
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點擊這里聯(lián)系客服!

聯(lián)系客服