File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Tiles Error during page access Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Tiles Error during page access" Watch "Tiles Error during page access" New topic
Author

Tiles Error during page access

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9345
    
    2

Guys,

I have a tiles definition as below:




I just tried to access the layout.jsp page and got the following error:



This is my layout.jsp page:



Any ideas???


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9345
    
    2

Any help guys?
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9345
    
    2

Was missing something in my configuration file. It seems fine now.
kundan atre
Greenhorn

Joined: Mar 07, 2011
Posts: 1
Joe Harry wrote:Was missing something in my configuration file. It seems fine now.

what was missing there, do you have any idea about that.
candid java
Greenhorn

Joined: Jan 13, 2012
Posts: 14
Here i gave the code to clear your error
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Struts Tiles</title>
</head>
<body bgcolor="pink">
<tiles:insert page="/baseLayout.jsp" flush="true">
<tiles:put name="title" value="Tiles Example" />
<tiles:put name="header" value="/header.jsp" />
<tiles:put name="menu" value="/menu.jsp" />
<tiles:put name="body" value="/body.jsp" />
<tiles:put name="footer" value="/footer.jsp" />
</tiles:insert>
</body>
</html>

if you are not cleared refer this link:
http://candidjava.com/struts-1x-tiles-with-example-program-in-eclipse
smail hssin
Greenhorn

Joined: Nov 30, 2013
Posts: 1
Hi,

You are missing

<tiles:insertAttribute name="header" />

in your baselayout.jsp
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Tiles Error during page access
 
Similar Threads
Maven + Tiles + Struts2
Tiles 2.x.x Question
Spring error when injecting beans
Spring ModelMap rendering problem
validation problem