Sunday, September 28, 2014

How to Insert Java Faces as a JSP Fragment

How to Insert Java Faces as a JSP Fragment

Instructions

    1

    Create a file with a ".JSPF" extension.

    2

    Type all the necessary taglib directives at the top of the file and then put all your JSF code within your "" and "" tags.

    3

    Save the file and upload it to the same server directory as the JSP file into which you will import it.

    4

    Import the JSP Fragment into your JSP file by including the directive "<%@ include file="file.jspf" %>" at the top of your file.



No comments:

Post a Comment