JSP page is not getting rendered properly

[nobr]Hi All,

I have a JSP which is having a structure like the one below. I am using WebSphere Application Server 6. When the below JSP rendered to the screen it is showing only the contents of my dynamic include and code after the last dynamic include. I have tried to change the buffer size still the same problem persists.

<%@ page buffer="256kb" autoFlush="true" %>

<html>

<head>

<title>AA</title>

</head>

<body>

My Page Start.

<br />

<jsp:include page="include/header.jsp">

</jsp:include>

My page content.

<br />

<jsp:include page="include/nav.jsp">

</jsp:include>

Thefinal data.

</body>

</html>

What could be the problem? Please help me.

The output of the above JSP is

Contents of header.jsp

Contents of nav.jsp

The final data[/nobr]

[1110 byte] By [haialbina] at [2007-11-27 9:26:44]
# 1

First thing to do is to check the HTML source code. Most browsers allow you to view the HTML source. Check the HTML to see if any of the HTML from the nav.jsp is included in the HTML. If the nav.jsp HTML is there then start checking the HTML tags to make sure they are all correctly fromtted and in the correct order.

tolmanka at 2007-7-12 22:23:59 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

How do I incude a static html in the jsp? When I used <c:import> I can achieve it but since my file name is formed dynamically I cannot assure that such an html file exists. Incorrect html file names gives a jasper exception in my entire portlet is not rendered. Is there a way to check if the file exits? How can this jasper exception be handled?

Deborah_Rachela at 2007-7-12 22:23:59 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
My problem is I am not getting the first part of my main jsp. Eveything from my includes is coming. Everything after the last include from my main.jsp is also coming.
haialbina at 2007-7-12 22:23:59 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...