Depending on circumstance, there are 2 different params that can be passed with my jsp:include. Is there any way that I could use a conditional of some sort to determine which param is passed?

Bozidar Dangubic

Yes, that should be possible. For example,

<jsp:include page="page1.jsp">
<% if(something)
   {
%>
   <jsp:param name="param1" value="1"/>
<% 
    }
    else
    {
%>
    <jsp:param name="param2" value="2"/>
<%
    }
%>
</jsp:include>
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact