• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to include jsp in jsp using JSF tag

 
Habeeb Shaikh
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have 3 jsp files which i want to include in my main jsp file. I am using JSF.Let me know how i could do it in JSF
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18098
50
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am afraid that I do not understand. JSF is not JSP.
 
Habeeb Shaikh
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using JSF tags in my jsp file.
I do wanted to include jsp file using JSF tag lib into my current jsp.
Hope you got it.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18098
50
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You cannot use JSF tags in a JSP file.

JSF uses an XML-based View Definition Language template which is compiled and used as data by the FacesServlet.

JSPs are compiled by the appserver's JSP compiler to generate a executable Java code as a Servlet.

In JSF 1.x, the VDL could be used in a "JSP" file, but the file wasn't actually JSP. In JSF2, that feature was removed and "JSP" isn't supported at all for JSF Views.
 
Habeeb Shaikh
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for your reply.What i need to do to fulfill my requirement. Which type of files i need to create and how to them call in my final view class.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic