Meaningless Drivel is fun!*
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
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
 
Don't get me started about those stupid light bulbs.
 
subject: How to 'include' a JSF file in a JSP file?