struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Takhar, Sandeep" <Sandeep.Tak...@CIBC.ca>
Subject RE: 'Can't insert page' Error - But it's a tile!
Date Thu, 08 Apr 2004 17:00:41 GMT
definition will come from the config file for sure.  Not sure about page?

sandeep

-----Original Message-----
From: Mathew, Manoj [mailto:Mathew.Manoj@principal.com]
Sent: Thursday, April 08, 2004 12:54 PM
To: Struts Users Mailing List
Subject: RE: 'Can't insert page' Error - But it's a tile!


Avinash

  thanks for the reply and i am lloking in to those examples.
but still what is the difference between

<tiles:insert page="tiles.content.common.downloadHeader">
 	<tiles:put name="category" value="Webpage" /> 
 	</tiles:insert>

			and

<tiles:insert definition="tiles.content.common.downloadHeader">
	<tiles:put name="category" value="Webpage" />
	</tiles:insert>


Thank-you,
Manoj Mathew
GIS-Systems
(515-362-0539)


-----Original Message-----
From: Avinash Gangadharan [mailto:agangadharan@ucdavis.edu]
Sent: Thursday, April 08, 2004 11:48 AM
To: 'Struts Users Mailing List'
Subject: RE: 'Can't insert page' Error - But it's a tile!


Manoj,
    Mark created a tiles-definition and created his jsp using that
definition. The definition in turn has all references to the jsp ---
Mark had:
--I have a tile defined as:
--
  <definition name="tiles.content.common.downloadHeader"
	path="/jsp/tiles/content/common/downloadHeader.jsp">
    <put name="category" type="string" />
  </definition>
--
To learn more about definitions you can look at the sample applications that
come with tiles or go to :
http://www.lifl.fr/~dumoulin/tiles/doc/tutorialBody.html#_Toc521292381

Avinash



-----Original Message-----
From: Mathew, Manoj [mailto:Mathew.Manoj@principal.com] 
Sent: Thursday, April 08, 2004 7:57 AM
To: Struts Users Mailing List
Subject: RE: 'Can't insert page' Error - But it's a tile!


I am new to Tiles , ignore me if my doubt doesn't make any chage

How the difference matters between  your code and this or the one from Mark
..

<tiles:insert page="tiles.content.common.downloadHeader">  ==> Isn't the
value of attribute "page" should be .jsp file <tiles:put name="category"
value="Webpage" /> ==>Isn't the value of attribute "value" should be .jsp
file </tiles:insert>



Thank-you,
Manoj Mathew



-----Original Message-----
From: Avinash Gangadharan [mailto:agangadharan@ucdavis.edu]
Sent: Wednesday, April 07, 2004 7:57 PM
To: Struts Users Mailing List
Subject: RE: 'Can't insert page' Error - But it's a tile!


  Try this :
	<tiles:insert definition="tiles.content.common.downloadHeader">
	<tiles:put name="category" value="Webpage" />
	</tiles:insert>


-----Original Message-----
From: Mark Mandel [mailto:Mark.Mandel@hds.com] 
Sent: Wednesday, April 07, 2004 5:50 PM
To: user@struts.apache.org
Subject: 'Can't insert page' Error - But it's a tile!

Hey All - 

This is driving me nuts!

I have a tile defined as:
--
  <definition name="tiles.content.common.downloadHeader"
path="/jsp/tiles/content/common/downloadHeader.jsp">
    <put name="category" type="string" />
  </definition>
--

And in my JSP code I am trying to include it by going:
--
<tiles:insert template="tiles.content.common.downloadHeader">
	<tiles:put name="category" value="Webpage" />
</tiles:insert>
--

And all I get back is:
--
Can't insert page 
'tiles.content.common.downloadHeader' :
/jsp/tiles/content/webpage/tiles.content.common.downloadHeader
--

But it's a tile?

I can't see what I am doing wrong 

TIA.

Mark

Web Application Developer 
Hitachi Data Systems Corporation 

HITACHI 
Inspire the Next 
4/441 St Kilda Rd Melbourne 3004 
Email: mark.mandel@hds.com 
Desk: +61 3 9281 9215 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message