struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keven" <hinb...@yahoo.ca>
Subject template
Date Mon, 02 Sep 2002 22:48:09 GMT
Hi, All:

I have a template jsp called template.jsp. The content of template.jsp is:

<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>

<html>
<head>
<title><template:get name='title'/></title>
</head>

<frameset  rows="20%,*">

  <FRAME src="<template:get name='header' flush='true'/>">
  <FRAME src="<template:get name='content' flush='true'/>">

</frameset>
</html>

I have another jsp file called  index.jsp which uses the template.jsp. The content of index.jsp
is:

<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>

<template:insert template='/template.jsp'>

  <template:put name='title' content='Templates' direct='true'/>
  <template:put name='header' content='/welcome.html' direct='true'/> 
  <template:put name='content' content='/tour.html' direct='true' />
</template:insert>

Whenever I tried to run it in tomcat, I got 
"Apache Tomcat/4.0.4 - HTTP Status 404 - /welcome.html

type Status report

message /Welcome.html

description The requested resource (/Welcome.html) is not available.

"
Apache Tomcat/4.0.4 - HTTP Status 404 - /tour.html"

type Status report

message /tour.html

description The requested resource (/tour.html) is not available.



I got the above messages in different frame.I don't know what cause the problem. Some one
knows how to fix it?

Thank you very much

Keven





Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message