<c:if test="${! empty param.n}">
 <%@ include file = "../../Include/check.jsp" %>
</c:if>

解决方案 »

  1.   

    <%if(n!=null)%>
     <%@ include file = "../../Include/check.jsp" %>
    <%}%>
      

  2.   

    参照http://community.csdn.net/Expert/TopicView1.asp?id=4188100
      

  3.   

    <c:if test="${! empty param.n}">
     <%@ include file = "../../Include/check.jsp" %>
    </c:if>
      

  4.   

    <%
    if(n!=null)
    {
    %>
     <%@ include file = "../../Include/check.jsp" %>
    <%
    }
    %>
    晕倒,怎么还有这么问的。
      

  5.   

    <%
    String n=request.getParameter("n");
    if(n!=null&&n=!""){
    %>
    <%@ include file = "../../Include/check.jsp" %>
    <%
    }%>
      

  6.   

    用标签
    <c:if test="${! empty param.n}">
     <%@ include file = "../../Include/check.jsp" %>
    </c:if>
    要不就直接用 String n=request.getParamerter("n");
               if(n!=null||!(n.trim().equals("")))
      

  7.   

    象你这样的,我觉得最好把check.jsp做成一个javaBean,如果n!=null&&!"".equals(n),就new这个javaBean,并调用javaBean的method
      

  8.   

    <%if(n == null)
      n = "";if(n!=null&&n=!""){
    %>
    <%@ include file = "../../Include/check.jsp" %>
    <%
    }%>
      

  9.   

    <%if(n == null)
      n = "";if(!n.equals("")){
    %>
    <%@ include file = "../../Include/check.jsp" %>
    <%
    }%>