• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

"no tag was defined for name: include" error

 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 90
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic