Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

jspÖÐ <c:if test> Ïà¹ØÎÊÌâ

ÔÚ²éѯºó½«²éѯ³öÀ´µÄÖµ¸³¸ø¸÷ÊäÈë¿ò
<c:if test="${not empty dataValue}">
      fm.SAMPLING_DATE.value=" <c:out value='${dataValue.SAMPLING_DATE}'/>";
      fm.DATE_TIME.value=" <c:out value='${dataValue.DATE_TIME}'/>"; 
      fm.O_DENSITY.value=" <c:out value='${dataValue.O_DENSITY}'/>";   
      fm.O_CHROMA.value=" <c:out value='${dataValue.O_CHROMA}'/>";
      fm.O_QSOLIDS.value=" <c:out value='${dataValue.O_QSOLIDS}'/>";
      fm.O_PHVALUE.value=" <c:out value='${dataValue.O_PHVALUE}'/>";
</c:if>
ÕâʱͻȻ·¢ÏÖµ±²éѯ³öÀ´µÄ½á¹ûÎÞֵʱÏ뵯³öÒ»ÏàÌáʾ¿òÒªÈçºÎд£¿JSPÐÂÊÖÇó¾È£¡£¡
<c:if test="${dataValue!=null}">

</c:if>
<c:if test="${dataValue==null}">
<script>
    alert("ûÓвéѯµ½ÄúÒªµÄÄÚÈÝ£¡");
</script>
</c:if>

ͬÒâһ¥


  Ö±½ÓŪ¸ö <c:else>ûÓвéѯµ½ÄÚÈÝ </c:else>  else±êÇ©ÊÇÕâÑù°É¡£Ìáʾ¾Í¿ÉÒÔÀ²¡£

½«½á¹û·µ»ØÒ³ÃæµÄʱºòÄã²»×öÅжÏÂð£¿
¿ÉÒÔÏÈÅжϣ¬È»ºóÔÚ´«°¡£¬
Èç¹û²»Îª¿Õ£¬´«Öµ£»Îª¿ÕµÄ»°£¬ÔÚµ¯³öÒ»¸ö¶Ô»°¿òÌáʾ°¡
  response.getWriter().p


Ïà¹ØÎÊ´ð£º

JSP/Servlet½»»¥ - Java / Web ¿ª·¢

JSPÒ³ÃæÖÐÓжà¸öradio°´Å¥
  JSPÒ³Ã潫²ÎÊýPOST¸øservlet
  
  ÒªÇóÈçÏÂ;
  1.Ñ¡ÔñÒ»¸öradio£¬µ÷ÓÃservlet servletÖиù¾Ý²ÎÊýµ÷ÓÃÆäËû½Ó¿Ú£¬³ý·ÇÑ¡ÖиÃradio²¢µã»÷JSPÖеÄʵР......

tomcat»·¾³ÏÂjsp±àÒë´íÎó£¬Çó½â£¡ - Java / Web ¿ª·¢

org.apache.jasper.JasperException: Unable to compile class for JSP: 
An error occurred at line: 52 in the jsp file: /vip_info.jsp
ÕË cannot be resolved
49: <table border="1& ......

jspºÍtomcatÎÊÌ⣬¿ì·èÁË - Java / Java EE

ÎÒдÁ˸öjspÒ³Ã棬Ȼºó¸Ä¶¯ÁËһϣ¬¸Ä¶¯µÄÄÚÈݾÍÊÇÔÚjspÒ³ÃæµÄjsº¯ÊýÀï¼ÓÁ˸öalert()Óï¾ä£¬µ«ÊÇÎÒ·ÃÎÊÕâ¸öÒ³Ãæʱ£¬ËÀ»î¶¼ÊÇÔ­À´Ò³ÃæµÄÄÚÈÝ£¬ÎÒ¼ÓÁ˺ܶàalertº¯Êý»¹ÊÇû¸Ä¶¯Ç°µÄÒ³ÃæÄÚÈÝ£»tomcatÖØÆôÁË£¬Ò²ÖØв¿ÊðÕâ ......

jspÎļþµ½µ×Òª²»Òª¼ÓNo-cache - Java / Web ¿ª·¢

ÓÃStruts2+Spring+Hibernate×öµÄÒ»¸öwebµÄERPСÏîÄ¿£¬×ܲ¿Ò»Ì¨·þÎñÆ÷£¨Êý¾Ý¿âÓëWeb·þÎñÆ÷ÔÚͬһ»ú×ÓÉÏ£©Êǵ¥¶À²¦ºÅÉÏÍøµÄ£¬Óë·Ö¹«Ë¾Ã»ÓÐÓþÖÓòÍøÏߣ¬Ó²¼þÌ«¹óÁË£¬ÆäËû¼¸¸öÊ¡Êзֹ«Ë¾¶¼À´·ÃÎÊÕâÒ»·þÎñÆ÷£¬¸Ð¾õºǫ́´ú ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ