Struts2與Webwork的對比

2022-09-02 01:09:06 字數 569 閱讀 3621

在很多方面,struts 2僅僅是改變了webwork下的名稱,因此,如果開發者具有webwork的開發經驗,將可以更加迅速地進入struts 2的開發領域。

下面是struts 2與webwork命名上存在改變。

struts 2和webwork成員名稱的對應表:

除此之外,struts 2也刪除了webwork中少量特性:

aroundinterceptor:struts 2不再支援webwork中的aroundinterceptor。如果應用程式中需要使用aroundinterceptor,則應該自己手動匯入webwork中的aroundinterceptor類。

富文字編輯器標籤:struts 2不再支援webwork的富文字編輯器,如果應用中需要使用富文字編輯器,則應該使用dojo的富文字編輯器。

ioc容器支援:struts 2不再支援內建的ioc容器,而改為全面支援spring的ioc容器,以spring的ioc容器作為預設的object工廠。

webwork專案移植到struts2

webwork 專案要轉到struts2 一 變化 struts2 始於webwork2.2.3,少許的比較大的改動可能會影響你的webwork2.2應用的移植 1 一些被 deprecated 掉的方法和類已經被移除,這包括 xwork inversion of control ioc 框架。2 ...

Struts2字尾 深入Struts2

一 將action字尾變成html字尾 xmlversion 1.0 encoding utf 8 doctype struts public apache software foundation dtd struts configuration 2.1 en struts include file...

Struts2入門(一)Struts2簡介

本章簡要介紹一下struts2框架 1.概念 我們知道,springmvc框架是為了整合servlet設計的控制層框架,那麼還有其他的框架也實現了這個功能,那麼就是struts2。struts2是乙個基於mvc設計模式的web應用框架,它本質上相當於乙個servlet,在mvc設計模式中,strut...