Struts Tiles Error.Please Help

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>

-----------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top