Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

using jsp:include with page attribute as an expression  RSS feed

 
nitin bharat
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!