jsp怎么判断当有参数n传入时,即if(n!=null) 就执行<%@ include file = "../../Include/check.jsp" %>呢? <c:if test="${! empty param.n}"> <%@ include file = "../../Include/check.jsp" %></c:if> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <%if(n!=null)%> <%@ include file = "../../Include/check.jsp" %><%}%> 参照http://community.csdn.net/Expert/TopicView1.asp?id=4188100 <c:if test="${! empty param.n}"> <%@ include file = "../../Include/check.jsp" %></c:if> <%if(n!=null){%> <%@ include file = "../../Include/check.jsp" %><%}%>晕倒,怎么还有这么问的。 <%String n=request.getParameter("n");if(n!=null&&n=!""){%><%@ include file = "../../Include/check.jsp" %><%}%> 用标签<c:if test="${! empty param.n}"> <%@ include file = "../../Include/check.jsp" %></c:if>要不就直接用 String n=request.getParamerter("n"); if(n!=null||!(n.trim().equals(""))) 象你这样的,我觉得最好把check.jsp做成一个javaBean,如果n!=null&&!"".equals(n),就new这个javaBean,并调用javaBean的method <%if(n == null) n = "";if(n!=null&&n=!""){%><%@ include file = "../../Include/check.jsp" %><%}%> <%if(n == null) n = "";if(!n.equals("")){%><%@ include file = "../../Include/check.jsp" %><%}%> 做个系统的需求,麻烦大家给点意见 java.sql.SQLException: No data found,求解决 《Java项目开发全程实录》企业门户网站问题(有源码下载) 高分请教一个问题 如何实现点击日历连接到当日日志 如何从servlet中返回值给jsp 帮忙调试一个程序(jsp) 兄弟们,帮帮忙吧,急需一个能生成不重复随机数的代码~~!!! 请教 为啥这个json数据获取失败?直接浏览器是有数据的 这真怪的问题!!!大家看一下吧。跪求大师们了!!!小弟在线急!!!等待!!!!! sql语句问题,请高手帮忙
<%@ include file = "../../Include/check.jsp" %>
<%}%>
<%@ include file = "../../Include/check.jsp" %>
</c:if>
if(n!=null)
{
%>
<%@ include file = "../../Include/check.jsp" %>
<%
}
%>
晕倒,怎么还有这么问的。
String n=request.getParameter("n");
if(n!=null&&n=!""){
%>
<%@ include file = "../../Include/check.jsp" %>
<%
}%>
<c:if test="${! empty param.n}">
<%@ include file = "../../Include/check.jsp" %>
</c:if>
要不就直接用 String n=request.getParamerter("n");
if(n!=null||!(n.trim().equals("")))
n = "";if(n!=null&&n=!""){
%>
<%@ include file = "../../Include/check.jsp" %>
<%
}%>
n = "";if(!n.equals("")){
%>
<%@ include file = "../../Include/check.jsp" %>
<%
}%>