This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Kubernetes in Action and have Marko Luksa on-line!
See this thread for details.
Win a copy of Kubernetes in Action this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with jsp:include  RSS feed

 
Ranch Hand
Posts: 442
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am facing problem while including jsp using jsp:standard action



<jsp:include page="a.jsp" flush="true"/>



If I do the above it includes a.jsp,but if i do any of the below it doesnt

<jsp:include page="a.jsp" flush="true">
<jsp:param name="colspan" value="8"/>
</jsp:include>



or


<jsp:include page="a.jsp" flush="true">
</jsp:include>




Can I know what is wrong?Please help.

Thanks
Veena
 
Ranch Hand
Posts: 213
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

<jsp:include page="a.jsp" flush="true">
</jsp:include>


will fail because there is no parameter. This format can only be used with a parameter.

<jsp:include page="a.jsp" flush="true">
<jsp:param name="colspan" value="8"/>
</jsp:include>



should work. I tested it out on my computer and it works.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!