This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes JSF and the fly likes How to 'include' a JSF file in a JSP file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "How to Watch "How to New topic
Author

How to 'include' a JSF file in a JSP file?

Abhishek Asthana
Ranch Hand

Joined: Sep 08, 2004
Posts: 146
Hi,

All of our existing JSP files are 'ordinary' JSP files, i.e. they don't have any JSF component. A simple 'ordinary' JSP is like this:

It's url is : http://127.0.0.1:7101/myapp/index.jsp (Its name is 'index.jsp')

A JSF page (a JSP having JSF components) is like this:


And its URL is: http://127.0.0.1:7101/myapp/faces/myjsf.jsp (Its name is myjsf.jsp)

Note that both files are in same application 'myapp' but JSF page has JSF context also. So in myjsf.jsp we can include index.jsp without any problem. However if in index.jsp, I try to include myjsf.jsp we get an error:


Is this thing possible or is there any work around or is this a REALLLY BAD practice? Any answers will be helpful!

Thanks
Abhishek
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to 'include' a JSF file in a JSP file?
 
Similar Threads
tomcat 5
problem with basic jsf tags in the jsp
JSF NewBie
Try to open JSF page in MyEclipse/JBoss
param needs unique ID even if in different forms?