Forums Register Login

"no tag was defined for name: include" error

+Pie Number of slices to send: Send
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?
+Pie Number of slices to send: Send
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 ?
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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
"I know this defies the law of gravity... but I never studied law." -B. Bunny Defiant tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 8374 times.
Similar Threads
facelets and custom tags
dynamic ui:include difficulties
Trying to get layout worked out for three content panes (using facelets template)
problem with code-completion for Facelets custum tags
[Facelet & JSF Security] What do you think of this?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 02:05:58.