
下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、struts2+sitemesh需要jar:sitemesh-2.4.2.jarsuts2-sitemesh-plugin-2.2.1.jarweb.xml這里要注重挨次 ?xml version=1.0 eoding=utf-8? web-app version=3.0 xms= xmlns:xsi=/2001/xmlschema-instance xsi:schemaloion= display-name /display-name contt-param param-name contextconfiglocation /param-name param-
2、value /web-inf/classes/applicationcontext.xml /param-value /context-param filter filter-name struts-cleanup /filter-name filter-class org.apache.struts2.diser.actioncontextcleanup /filter-class /filter filter-map filter-name struts-cleanup /filter-name url-pattern /* /url-pattern /filter-mapping fil
3、ter filter-name sitemesh /filter-name filter-class com.opensymphony.sitemesh.webapp.sitemeshfilter /filter-class /filter filter-mapping filter-name sitemesh /filter-name url-pattern /* /url-pattern /filter-mapping filter filter-name struts2 /filter-name filter-class org.apache.struts2.dispatcher.ng.
4、filter.strutsprepareandexeefilter /filter-class /filter filter-mapping filter-name struts2 /filter-name url-pattern /* /url-pattern /filter-mapping listener listener-class org.springframework.web.context.contextloaderlistener /listener-class /listener welcome-list welcome-file index.jsp /welcome-fil
5、e /welcome-file-list jsp-config taglib taglib-uri sitemesh-page /taglib-uri taglib-location /web-inf/sitemesh-page.tld /taglib-location /taglib taglib taglib-uri sitemesh-decorator /taglib-uri taglib-location /web-inf/sitemesh-decorator.tld /taglib-location /taglib /jsp-config /web-app web-inf/decor
6、ators.xml ?xml version=1.0 encoding=utf-8? decorators defaultdir=/decorators decorator name=main page=main.jsp pattern /* /pattern /decorator excludes pattern /login.jsp /pattern pattern /register.jsp /pattern /excludes /decorators web-inf/sitemesh.xml ?xml version=1.0 encoding=utf-8? sitemesh prope
7、rty name=decorators-file value=/web-inf/decorators.xml / excludes file=$decorators-file / page-parsers parser default=true class=com.opensymphony.mole.sitemesh.parser.htmlpageparser / parser content-type=text/html /page-parsers decorator-mappers mapper param name=config value=$decorators-file / /map
8、per /decorator-mappers /sitemesh webroot/decorators/main.jsp !doctype html public -/w3c/dtd xhtml 1.0 transitional/en /tr/xhtml1/dtd/xhtml1-transitional.dtd % page contenttype=text/html; char=utf-8 pageencoding=utf-8% % taglib uri= prefix=decorator% string path = request.getcontextpa
9、th(); string basepath = request.getscheme()+:/+request.getservername()+:+request.getserverport()+path+/; html head title decorator:title default=default title / /title decorator:head / /head body header br decorator:body / footer /body /html webroot/pages/searchall.jsp % page language=java import=java.util.* pageencoding=iso-8859-1% string path = request.getcontextpath(); string basepath = request.getscheme()+:/+request.getservername()+:+request.getserverport()+path+
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 學(xué)生國(guó)防教育合作協(xié)議
- XX廣告噴繪制作合同5篇
- 醫(yī)療居間服務(wù)合同范本
- 華為配件采購合同范本
- 個(gè)人辭職申請(qǐng)報(bào)告
- 個(gè)人車位轉(zhuǎn)讓合同
- 護(hù)理學(xué)試題(含答案)
- 醫(yī)療房屋租賃合同范本
- 保健按摩師初級(jí)題庫+參考答案
- 公司美甲店入股合同范本
- 外研版小學(xué)英語五年級(jí)下冊(cè)課文翻譯
- 口語教程4整套課件完整版教學(xué)教程最全電子講義教案
- 高壓氧艙課件
- 加德納多元智能測(cè)評(píng)量表【復(fù)制】
- 譯林英語四年級(jí)下冊(cè)4B各單元教學(xué)反思
- QC成果提高大跨度多節(jié)點(diǎn)曲面鋼桁架一次安裝合格率
- 國(guó)家電網(wǎng)有限公司十八項(xiàng)電網(wǎng)重大反事故措施(修訂版)
- 環(huán)氧乙烷固定床反應(yīng)器課程設(shè)計(jì)
- 班、團(tuán)、隊(duì)一體化建設(shè)實(shí)施方案
- 如何建構(gòu)結(jié)構(gòu)性思維 課后測(cè)試
- 施工方案(行車拆除)
評(píng)論
0/150
提交評(píng)論