manging view in aplication

I hope my question isn't stupid. I am creating web aplication with struts and i want to split my view pages in parts(for example: footer, header, content). I tried <jsp: include page=...> and similar stuff but it dosen;t work like i want. And when i have (in header) forign coustom tags i get plain text from header.jsp(like it was not compiled). I heard about tails but i'm not shure if it is egsagly what i want. The best way (for me) could be if page was put in one from parts and then compile(whit all variables and stuff) but what is best way to do it in J2EE.

[580 byte] By [maxxxtaa] at [2007-11-26 15:09:42]
# 1

>I heard about tails but i'm not shure if it is egsagly what i want.

I presume you mean tiles not tails.

<jsp:include> should work fine.

What is it about the include tag that doesn't work the way you want?

With regards to the header.jsp, did you import the taglib into that page?

With jsp:include, each jsp page is standalone, and the result of running the page is imported - not the page itself.

>The best way (for me) could be if page was put in one from parts and then compile(whit all variables and stuff)

That sounds like you want to use the [url http://java.sun.com/products/jsp/syntax/1.2/syntaxref129.html#997991\]<%@ include %> directive[/url] as opposed to jsp:include

evnafetsa at 2007-7-8 9:00:22 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
With JSTL1.1, you can also use c:import to include multiple files in your JSP pages. I agree with evnafets that it's better to include files (top navigation, bottom nav etc) than have all code in one page.
appy77a at 2007-7-8 9:00:22 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...