sturts2的配置檔案

2021-06-03 00:16:44 字數 3664 閱讀 1136

<?xml version="1.0" encoding="utf-8" ?>

/index.jsp

/web-inf/jsp/user/error.jsp

/web-inf/jsp/exception.jsp

/web-inf/jsp/admin/login.jsp

/web-inf/jsp/admin/error.jsp

result="exception" />

result="exception" />

/web-inf/jsp/user/register.jsp

userexistsips

/web-inf/jsp/user/retrieveresult.jsp

/web-inf/jsp/user/provision.jsp

/index.jsp

regist!registsuccess

regist!registfail

/web-inf/jsp/user/registersuccess.jsp

/web-inf/jsp/user/registe***il.jsp

/web-inf/jsp/user/retrievepassword.jsp

/web-inf/jsp/user/newslist.jsp

/web-inf/jsp/user/newsdetail.jsp

/web-inf/jsp/user/main.jsp

/index.jsp

loginips

/web-inf/jsp/user/faqdetail.jsp

/web-inf/jsp/user/features.jsp

/web-inf/jsp/user/howtostart.jsp

/web-inf/jsp/user/modifypwd.jsp

/web-inf/jsp/user/download.jsp

/web-inf/jsp/user/user_changeinfo.jsp

/web-inf/jsp/user/download.jsp

/web-inf/jsp/admin/version/version_main.jsp

/web-inf/jsp/user/download.jsp

/web-inf/jsp/admin/version/version_main.jsp

pptips

attachment;filename="introduction.pptx"

1024

/abc

/abc

/web-inf/jsp/admin/login.jsp

/web-inf/jsp/admin/login.jsp

/web-inf/jsp/admin/frame.jsp

/web-inf/jsp/admin/top.jsp

/web-inf/jsp/admin/left.jsp

/web-inf/jsp/admin/body.jsp

/web-inf/jsp/admin/left_content.jsp

/web-inf/jsp/admin/body_content.jsp

/web-inf/jsp/admin/login.jsp

loginips

blacklist

/web-inf/jsp/admin/black/blacklist_main.jsp

/web-inf/jsp/admin/black/blacklist_add.jsp

/web-inf/jsp/admin/black/blacklist_modify.jsp

suggest

suggest

/web-inf/jsp/admin/suggest/suggestion_list.jsp

/web-inf/jsp/admin/suggest/suggestion_list.jsp

/web-inf/jsp/admin/suggest/replysuggestion.jsp

attachment;filename="$"

downloadfile

/web-inf/jsp/admin/suggest/filenotfound.jsp

/web-inf/jsp/user/make_suggestion.jsp

/web-inf/jsp/user/make_suggestion.jsp

/web-inf/jsp/user/faq.jsp

suggestsubmit!findusersuggestion

/web-inf/jsp/user/user_suggestion.jsp

login

2097152

index.jsp

/web-inf/jsp/user/faq.jsp

/web-inf/jsp/user/make_suggestion.jsp

/web-inf/jsp/admin/faq/faq_list.jsp

faq/web-inf/jsp/admin/faq/faq_add.jsp

/web-inf/jsp/admin/faq/faq_modify.jsp

usermanage!findusermanger

/web-inf/jsp/admin/user/exchangeuser.jsp

/web-inf/jsp/admin/user/usermanger.jsp

usermanage!findusermanger

/web-inf/jsp/admin/user/user_add.jsp

/web-inf/jsp/admin/user/user_modify.jsp

/web-inf/jsp/admin/user/admin_modify.jsp

useridips

/web-inf/jsp/admin/user/user_info.jsp

/web-inf/jsp/admin/white/whitelist_main.jsp

/web-inf/jsp/admin/white/whitelist_main.jsp

/web-inf/jsp/admin/white/whitelist_add.jsp

/web-inf/jsp/admin/white/whitelist_modify.jsp

whitelist

useridips

/web-inf/jsp/admin/white/whitelist_info.jsp

/web-inf/jsp/admin/news/news_main.jsp

newsaction!shownews

/web-inf/jsp/admin/news/news_add.jsp

/web-inf/jsp/admin/news/news_check.jsp

/web-inf/jsp/admin/version/version_main.jsp

/web-inf/jsp/admin/version/version_modify.jsp

/web-inf/jsp/admin/version/version_main.jsp

/version!findversion

$/web-inf/jsp/admin/version/version_modify.jsp

83880000

/web-inf/jsp/admin/system/systemconfig.jsp

Sturts2的請求流程

最上面是三個過濾器,並且這三個過濾器也已經被改了。strutsprepareandexecutefilter 是struts2的核心控制器,它負責攔截由 指定的所有使用者請求,當使用者請求到達時,該filter會過濾使用者的請求,預設情況下,如果使用者請求的路徑不帶字尾或者字尾以.action結尾,...

對於sturts2中的標籤

在沒有使用struts2 的時候可以使用 el來進行 url傳參。而在 struts2 中不推薦使用 el 其實在 struts2.0.0.11 之後就不再支援el 而推薦使用功能更為強大的 ognl 表示式語言。那麼怎麼使用 ognl 實現url傳參?就是解決這一問題的標籤 標籤一般和超連結 一起...

Sturts2標籤的用法大總結

1,訪問action值棧中的普通屬性 2,訪問action值棧中的物件屬性 要有get set方法 3,訪問值棧中物件屬性的方法 4,訪問值棧中action的普通方法 5,訪問靜態方法 6,訪問靜態屬性 配置屬性檔案,允許ognl訪問靜態方法struts.ognl.allow.true 7,訪問ma...