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Ò³ÃæÖÐÓжà¸öradio°´Å¥
JSPÒ³Ã潫²ÎÊýPOST¸øservlet
ÒªÇóÈçÏÂ;
1.Ñ¡ÔñÒ»¸öradio£¬µ÷ÓÃservlet servletÖиù¾Ý²ÎÊýµ÷ÓÃÆäËû½Ó¿Ú£¬³ý·ÇÑ¡ÖиÃradio²¢µã»÷JSPÖеÄʵР......
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Ò³Ã棬Ȼºó¸Ä¶¯ÁËһϣ¬¸Ä¶¯µÄÄÚÈݾÍÊÇÔÚjspÒ³ÃæµÄjsº¯ÊýÀï¼ÓÁ˸öalert()Óï¾ä£¬µ«ÊÇÎÒ·ÃÎÊÕâ¸öÒ³Ãæʱ£¬ËÀ»î¶¼ÊÇÔÀ´Ò³ÃæµÄÄÚÈÝ£¬ÎÒ¼ÓÁ˺ܶàalertº¯Êý»¹ÊÇû¸Ä¶¯Ç°µÄÒ³ÃæÄÚÈÝ£»tomcatÖØÆôÁË£¬Ò²ÖØв¿ÊðÕâ ......
ÓÃStruts2+Spring+Hibernate×öµÄÒ»¸öwebµÄERPСÏîÄ¿£¬×ܲ¿Ò»Ì¨·þÎñÆ÷£¨Êý¾Ý¿âÓëWeb·þÎñÆ÷ÔÚͬһ»ú×ÓÉÏ£©Êǵ¥¶À²¦ºÅÉÏÍøµÄ£¬Óë·Ö¹«Ë¾Ã»ÓÐÓþÖÓòÍøÏߣ¬Ó²¼þÌ«¹óÁË£¬ÆäËû¼¸¸öÊ¡Êзֹ«Ë¾¶¼À´·ÃÎÊÕâÒ»·þÎñÆ÷£¬¸Ð¾õºǫ́´ú ......