程式設計日誌 精通struts2

2021-09-30 11:18:47 字數 455 閱讀 6550

1.tomcat啟動專案有bug。最後檢視log檔案

localhost.2014-06-23

2.xwork版本問題,類跟目錄也因版本而異

3.map api有android和網頁版區別

4.index.action和index的字尾問題

5.struts-core-1.3.5

出現錯誤:struts2-core-2.0.9.jar和struts-core-1.3.5.jar一起載入

6.struts2單例子 不能有兩個jar

否則出現caused by: bean type class com.opensymphony.xwork2.objectfactory with the name struts has already be

7.結果不能提交的 service沒建立

model

setmodel和getmodel是成對出現

Struts2 入門到精通 (一)

一 為什麼要使用 struts2 以及 servlet 的優缺點 servlet 缺點 1.寫乙個 servlet 需要在 web.xml 檔案裡面配置 8 行,如果 servlet 過多,則會導致 web.xml 檔案裡面的內容很多。2.當專案分工合作,多人編輯乙個 web.xml 檔案的時候會出...

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...