Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp:include in JSF JSP

 
Sajan Patel
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello there,
I have two jsp and would like to include one jsp in Another


includeJSP is included in BaseJSP.jsp. Base JSP has form and include JSP has Command Link to submitForm. currently, If I hit Submit button than browser start spinning but never reach to #{action.method} (In another word I can say it submitting form) and come back to same page with no h:messages. I am just wondering here is this possible or I am just wasteing my time and your too.

Thanks in Advance
Sajan Patel
 
Richard Green
Ranch Hand
Posts: 536
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have done it like this in the past and it works for me.
 
Denise Smith
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use the jsp include but the base page is never in a subview only the included page is..

here is the base page code with the include in a tr
<TR>
<TD valign="top">
<jsp:include page="/nav.jsp" flush="false"></jsp:include>
</TD>
</TR>

then the included page:

<f:subview id="ch">

<hx:scriptCollector id="scriptCollector1" preRender="#{pc_Ch.onPageLoadBegin}">
<h:form styleClass="form" id="form1

etc..
 
Sajan Patel
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yup!! Its working now when I removed subView from main page.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic