• Post Reply Bookmark Topic Watch Topic
  • New Topic

"no tag was defined for name: include" error

 
J Miller
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using RichFaces in a JSF application, and trying to include a JSP page, but I'm having some problems. Here's the snippet of code where I'm including this file:



Problem is that when I try to browse to the web page, I'm getting a 500 error, and the console is giving me this error:

<jsp:include> Tag Library supports namespace: http://java.sun.com/JSP/Page, but no tag was defined for name: include


Any ideas on how to correct this?
 
Max Katz
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's been very long time since I used JSP with JSF but I think you need to use f:subView to do the include. As for the actual error, are you sure you have the correct namespace: http://java.sun.com/JSP/Page ?
 
J Miller
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've changed the namespace to read:



and I'm no longer getting the error. However, now nothing is happening. I've tried with and without the <f:subView>, and it doesn't seem to make a difference. The page renders as if there's no problem, but it doesn't appear that the included part is being rendered. Originally the jsp that I'm included wouldn't actually output anything to the page, it was just back-end code. I took everything out except the word "TEST" to see if it was even getting rendered and it isn't.
 
Cesar Loachamin
Ranch Hand
Posts: 90
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi J Miller

You have a problem with Facelets View Handler, Facelets doesn't have a mechanism to include jsp pages, read this article can help you to solve your problem Facelets and legacy JSP

Regards

Cesar
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!