This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

Abhishek Asthana
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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 : (Its name is 'index.jsp')

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

And its URL is: (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!

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic