aspose file tools
The moose likes JSF and the fly likes using jsp:include  with page attribute as an expression Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "using jsp:include  with page attribute as an expression" Watch "using jsp:include  with page attribute as an expression" New topic
Author

using jsp:include with page attribute as an expression

nitin bharat
Greenhorn

Joined: Feb 26, 2006
Posts: 3
I want to use <jsp:include page="<%= expression %>"/> in JSF, where expression is any bean property which will give the jsp.
what's the proper way?.
Rajeev Ravindran
Ranch Hand

Joined: Aug 27, 2002
Posts: 455
I don't think its possible. I had to do something similar to this and i made it work by keeping 2 panelGroups in the same jsp page but only one will be displayed at a time; depending on some criteria

if (condition)
panelGroup1.setRendered(true);
panelGroup2.setRendered(false);

hope it helps

Thanks,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: using jsp:include with page attribute as an expression
 
Similar Threads
SCWCD
how to include jsp page in jsf
Jsp 1.0 problem
include a html page in JSP file
problem with include files