Meaningless Drivel is fun!
The moose likes JSP and the fly likes Including JSF pages in a JSP page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Including JSF pages in a JSP page" Watch "Including JSF pages in a JSP page" New topic

Including JSF pages in a JSP page

Abhishek Dwaraki
Ranch Hand

Joined: Feb 13, 2006
Posts: 44
I need to include a JSF page with all faces-components in my JSP page. I have used the <jsp:include page> tag to include the JSF page, but the JSF components are not being rendered. Only the text present in the JSF page is being rendered. Could someone advice me on how to overcome this problem....? Also the output is very variable with the text being rendered sometimes and not being rendered the other times. Is it something to do with my mapping in web.xml...?
I have included the JSF file like shown below...

<jsp:include page="sample.faces" flush="true" /> and my current mapping in web.xml is for *.faces. Plz help soon. Thanks in advance...

[bear edit: removed URGENT from title]
[ March 15, 2006: Message edited by: Bear Bibeault ]

Abhishek Dwaraki
Dept of Electrical and Comp Engg
University of Massachusetts, Amherst
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
- Remove "URGENT" from your subject line
- It would be better answer in JSF Forum

Where is your faces-config.xml file?
Have you tried a JSF simple/example page, like hello world?
I agree. Here's the link:
subject: Including JSF pages in a JSP page
It's not a secret anymore!