include?

Hi!

I've made a menu fragment page which I would like to include in some pages. I've used jsf for the jspf and in the pages which I will include the menu page in.

The problem is that I cannot get it to work. I use jsp:include and f:subview. The menu page fragment is included but not rendered, I can see the source is included but not evaluated that is.

Please help me! Are you supposed to do this differently when you develop a jsf application than a standard jsp application perhaps?

/Leo

[523 byte] By [leo.wentzela] at [2007-10-2 5:45:41]
# 1
Ok, I think I've managed to go around the problem. If I name the extension of the file to be included to jsp instead of jspf the include works. Now my question is. Why can't I give the file the extension jspf? Isn't that the name for jsp fragments?
leo.wentzela at 2007-7-16 1:55:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Update:

It seems that tomcat does not recognize the jspf extension. I included a servlet mapping for this to make it work:

<servlet-mapping>

<servlet-name>jsp</servlet-name>

<url-pattern>*.jspf</url-pattern>

</servlet-mapping>

I guess that this is fine.

leo.wentzela at 2007-7-16 1:55:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...