Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

include navibar from external XHTML file

 
Michal Pawelczyk
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let's assume following situation:

_template.xhtml====================


home.xhtml========================

def_navi.xhtml==========================




As you can see I would like to load menu from def_navi.xhtml. When I would like to load main page (home.xhtml is my main page) in internet browser I have info:


When I check logs I found:



I thing that also file structure could be helpful

web
-templates
--_template.xhtml
-views
--def_navi.xhtml
-WEB-INF
--home.xhtml
--index.jsp

I don't undertand Tomcat logs, because def_navi.xhtml and _templete.xhtml are in diffrent directories.

I will be very greatful for your help. I read some articles and tutorials and I don't know why this simple example doesn't work.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic