my dog learned polymorphism
The moose likes JSF and the fly likes how to include jsp in jsp using JSF tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "how to include jsp in jsp using JSF tag" Watch "how to include jsp in jsp using JSF tag" New topic
Author

how to include jsp in jsp using JSF tag

Habeeb Shaikh
Ranch Hand

Joined: Nov 23, 2008
Posts: 48
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

Joined: Jun 25, 2001
Posts: 17145
    
  27

I am afraid that I do not understand. JSF is not JSP.


An IDE is no substitute for an Intelligent Developer.
Habeeb Shaikh
Ranch Hand

Joined: Nov 23, 2008
Posts: 48
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

Joined: Jun 25, 2001
Posts: 17145
    
  27

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

Joined: Nov 23, 2008
Posts: 48
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to include jsp in jsp using JSF tag
 
It's not a secret anymore!