p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   JSP Basics (http://p2p.wrox.com/forumdisplay.php?f=92)
-   -   Chapter2:problem in rendering weather table (http://p2p.wrox.com/showthread.php?t=52820)

samouille666 January 17th, 2007 10:50 AM

Chapter2:problem in rendering weather table
 
Hello,

I precise that I'm french so that you won't be amazed by my english.

Well, I was trying to do exercise 2 and found some weird behavior.

the following showportal.jsp works :
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
<link rel=stylesheet type="text/css" href="portal.css">
<title>New Portal</title>
</head>
<body>
<jsp:include page="weather.jsp" >
<jsp:param name="mode" value="standalone"/>
</jsp:include>
<jsp:include page="news.jsp" >
<jsp:param name="mode" value="standalone"/>
</jsp:include>
<jsp:include page="entertain.jsp" >
<jsp:param name="mode" value="standalone"/>
</jsp:include>
</body>
</html>

but not this one (change : i move the include of weather between news.jsp and entertain.jsp)

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
<link rel=stylesheet type="text/css" href="portal.css">
<title>New Portal</title>
</head>
<body>
<jsp:include page="news.jsp" >
<jsp:param name="mode" value="standalone"/>
</jsp:include>
<jsp:include page="weather.jsp" >
<jsp:param name="mode" value="standalone"/>
</jsp:include>
<jsp:include page="entertain.jsp" >
<jsp:param name="mode" value="standalone"/>
</jsp:include>
</body>
</html>

now the table of weather won't be displayed but the title (You Get the Latest Weather!) will
I just wonder why ?

thanks a lot

sam



All times are GMT -4. The time now is 04:05 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.