S
satishmugala
Hi All,
I am getting the following error i this jsp:
Error:
-------------------
500 Internal Server Error
java.lang.NullPointerException at
org.apache.struts.taglib.tiles.InsertTag.processAttribute(InsertTag.java:689)
-------------------
I have downloaded all the required jars,defined the variables.Please
give me any suggestion on how to fix this.
Regards,
Satish
mainLayout.jsp
-----------------
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"
prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles"
prefix="tiles"%>
<html>
<head>
<title>
First tiles
</title>
</head>
<body>
<tiles:insert attribute="header.jsp"/>
</body>
</html>
----------------------------
TILES-DEF.XML
<?xml version="1.0" encoding="windows-1252" ?>
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration
1.1//EN"
"http://jakarta.apache.org/struts/dtds/tiles-config.dtd">
<tiles-definitions>
<!-- Main Layout -->
<definition name="main.layout" path="/mainLayout.jsp">
<put name="title" value="Testing" />
<put name="header" value="/header.jsp" />
<put name="body" value="here is my body" />
<put name="footer" value="/footer.jsp" />
</definition>
</tiles-definitions>
-----------------------------
I am getting the following error i this jsp:
Error:
-------------------
500 Internal Server Error
java.lang.NullPointerException at
org.apache.struts.taglib.tiles.InsertTag.processAttribute(InsertTag.java:689)
-------------------
I have downloaded all the required jars,defined the variables.Please
give me any suggestion on how to fix this.
Regards,
Satish
mainLayout.jsp
-----------------
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"
prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles"
prefix="tiles"%>
<html>
<head>
<title>
First tiles
</title>
</head>
<body>
<tiles:insert attribute="header.jsp"/>
</body>
</html>
----------------------------
TILES-DEF.XML
<?xml version="1.0" encoding="windows-1252" ?>
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration
1.1//EN"
"http://jakarta.apache.org/struts/dtds/tiles-config.dtd">
<tiles-definitions>
<!-- Main Layout -->
<definition name="main.layout" path="/mainLayout.jsp">
<put name="title" value="Testing" />
<put name="header" value="/header.jsp" />
<put name="body" value="here is my body" />
<put name="footer" value="/footer.jsp" />
</definition>
</tiles-definitions>
-----------------------------