Ich bin ein header.jsp in meinem layout.sp inclduing aber nicht im Browser reflektiert bekommt und haben sowohl mozilla versucht und auch nach erfolgter Cache-Aktualisierung ..Java-Header nicht
header.jsp Content- -
<h1>Login Application</h1>
layout.jsp content--
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator"
prefix="decorator"%>
<%@page contentType="text/html; charset=UTF-8"%>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
</head>
<body>
<div>
<jsp:include page="/WEB-INF/includes/header.jsp"/>
</div>
<div ><decorator:body /></div>
</body>
</html>
Warum in der Welt ist dies markiert Java und Eclipse? Sieht mehr wie Javascript und Browser aus! –
@Chris es ist ein JSP-Problem, also war Java zumindest korrekt. Ich habe es neu markiert. – seth
Was ist die Ausgabe, wenn Sie nur versuchen, "/WEB-INF/includes/header.jsp" im Browser zu laden? Mein Verdacht ist, dass der Pfad zum Include falsch ist. – jsight