• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with jsp:include  RSS feed

 
Veena Pointi
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
 
Richard Golebiowski
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!