Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Tiles

Reply
Thread Tools

Tiles

 
 
meetselva@gmail.com
Guest
Posts: n/a
 
      03-29-2005
Hi,

i am new to this group and struts either....

i have a doubt regarding Struts-Tiles concept. i am basically
designing a page using struts framework. im using JBoss as my server.
And for all my pages i have a common header and footer, so i went for
tiles.

i have defined this header and footer in a tile and inherit them as
required.

in my jsp pages i am using struts html,bean,logic tag libraries. and
so in header and footer pages.i have included all these tag libs in my
header,footer and in all my other pages(body).

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

so in my case a page means..

<header tile>
<body>
<footer tile>

The doubt is whenever i load a page(includes all the above 3)... for
each tile the tag libs are initialized. say for header the
struts-html.tld is initialized again for body the same tile is getting
initialized and for footer again the same tile is initialized. its
because i have included them all my 3 tiles. but if i remove the
includes in any of my tile( assuming its all initialized in my header).
it throws an error.
so is it neccessary to include in all my tiles or can i initialize
it globally and use it across all my pages.

Thanks in advance..

Thanks,
Rex

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Struts / tiles ignore tag in tiles:insert not working Rich M Java 0 03-05-2004 06:54 PM
drawRenderedImage leads to out of memory error - print as tiles? Morten Nørgaard Java 0 09-15-2003 10:12 AM
TILES: Converting registration page from struts example = nullpointer? Jack Java 7 07-30-2003 02:47 PM
TILES: How to i18n a put Jack Java 0 07-25-2003 01:32 PM
Struts Tiles Sean Chou Java 1 07-10-2003 11:46 PM



Advertisments