I was testing some concepts and I came across following scenarios where include file does not seem working. Is the test code issue or some ATG setting issue?
Though DSP jsp include works but jhtml include file does not seem working.
----foyer.jhtml------------------
<html>
<head>
<title>foyer</title>
</head>
<body bgcolor="#ffffff">
<h1>foyer</h1>
<droplet src="header.jhtml">
</droplet>
</body>
</html>
-----header.jhtml-------------
<h1>header</h1>
<h1>The header of your page</h1>
===========
--- javax.servlet.ServletException
at atg.servlet.container.WebApplication.dispatchServl etException(WebApplication.java:1072)
at atg.servlet.container.WebApplication.dispatchReque st(WebApplication.java:831)
at atg.servlet.container.WebApplication.dispatchReque st(WebApplication.java:626)
at atg.servlet.pipeline.WebApplicationDispatcherPipel ineServlet.service(WebApplicationDispatcherPipelin eServlet.j
at atg.servlet.pipeline.PipelineableServletImpl.passR equest(PipelineableServletImpl.java:116)
at atg.servlet.security.ThreadUserBinderServlet.servi ce(ThreadUserBinderServlet.java:91)
at atg.servlet.pipeline.PipelineableServletImpl.passR equest(PipelineableServletImpl.java:116)
at atg.servlet.security.FormLoginPipelineServlet.serv ice(FormLoginPipelineServlet.java:159)
at atg.servlet.pipeline.PipelineableServletImpl.passR equest(PipelineableServletImpl.java:116)
....stack trace CROPPED after 10 lines.
Caused by :java.lang.NullPointerException
at _atg_3._jspbuild._foyer._jspService(_foyer.java:84 )
at atg.servlet.jsp.DynamoJspPageServlet._jspService(D ynamoJspPageServlet.java:130)
at atg.servlet.jsp.DynamoJspPageServlet._jspService(D ynamoJspPageServlet.java:94)
at atg.servlet.jsp.DynamoJspPageServlet.service(Dynam oJspPageServlet.java:180)
at atg.servlet.container.WebApplication.dispatchServl et(WebApplication.java:1350)
at atg.servlet.pagecompile.PageCompileServlet.service (PageCompileServlet.java:471)
at atg.servlet.DynamoServlet.service(DynamoServlet.ja va:123)
at atg.servlet.pipeline.PipelineableServletImpl.passR equest(PipelineableServletImpl.java:119)
at atg.droplet.DropletEventServlet.service(DropletEve ntServlet.java:465)
....stack trace CROPPED after 10 lines.
The line 84 in _foyer.java [compiled jhtml page ]:
======================
pageCompile.getMimeTyper().getMimeType("header.jht ml").equals("text/plain"))){
======================