2014-09-12 3 views
0

내가 localhost : 8080을 방문하면 장식되지 않은 index.html을 가져오고 싶습니다. localhost : 8080/admin을 방문하면 모든 페이지를 장식하고 싶습니다. 8080 :sitemesh 3 루트 경로 제외

+0

'제외'대신 'exclue'를 시도 했습니까? 어쨌든 이것이 그물에있는 다른 예제의 정확한 속성 이름 인 것 같습니다. – Tor

답변

0

이 (마임 타입) 텍스트/JSP (/ MIME으로 MIME 유형을 추가 index.html을 내가 localhost를 방문하지 않는

내 설정은

<?xml version="1.0" encoding="UTF-8"?> 
<sitemesh> 
    <!-- <mapping path="/" exclude="true"/> not work --> 
<mapping path="/index.html" exclude="true"/> 
<mapping path="/assets/*" exclude="true"/> 
<mapping path="/admin*" decorator="/WEB-INF/decorators/decorator.html"/> 
</sitemesh> 

index.html을이 장식되지 않은 것입니다 -유형).

<mapping path="/" exclude="true"/> 

친절 '<'& '이>'각각에 괄호를 교체합니다.

이것은 확실히 작동합니다.