Win a copy of Penetration Testing Basics this week in the Security 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