jsp´«²Î¸øJavaScript²ÎÊýÑéÖ¤ÎÊÌâ - Java / Web ¿ª·¢
ÔÚJSPÒ³ÃæÖУ¬´ÓÊý¾Ý¿âÖжÁ³öÒ»¸öÊý¾Ý
<%
Stock_No=Sto.getInt("StockNumber");//¿â´æintÀàÐÍ
%>
²¢Çҳɹ¦ÔÚÒ³ÃæÉÏÏÔʾ³öÀ´<%=Stock_No%>
±íµ¥Ìá½»Ò»¸ö³ö»õÊýÁ¿
Java code:
<form action="Stockout.jsp" method="post" name=StockOut target="rightdownFrame">
³ö»õÊýÁ¿£º<input type=text name=StockOutNumber><br><br>
<input type=button value="³ö¿â" onclick="check(<%=Stock_No%>)" >
<input type=reset>
</form>
ʹÓÃJavaScript½øÐÐÅжÏ
JScript code:
function check(int no) {
if(document.StockOut.StockOutNumber.value == "") {
alert("ÇëÊäÈ빺ÂòÊýÁ¿");
return;
}
/* int sono=no;
int Stock_Out_Number=Integer.parseInt(document.StockOut.StockOutNumber.value);
if(Stock_Out_Number>=sono){
alert("³ö¿âÁ¿²»¿ÉÒÔ´óÓÚ¿â´æ");
return;
}
*/
document.StockOut.submit();
}
µ±±íµ¥ÊäÈëΪ¿ÕµÄʱºò£¬µ¯³öÌáʾ
ÏÖÔÚÏë¼ÓÒ»¸öÅжϣ¬¼´µ±±íµ¥ÊäÈëÊý¾Ý´óÓÚ¿â´
Ïà¹ØÎÊ´ð£º
µ±ÖªµÀÒ»¸öÈÕÆÚ£¬ÈçºÎ°ÑÕâ¸öÈÕÆÚËùÔÚÑ®µÄÇ°ºóÁ½¸öÈÕÆÚÈ¡³ö
±ÈÈçÊäÈë20090905£¬¾ÍÊäÈë20090901 20090910
Êä³ö20090901 20090910
È¡µÃÌìÊýºó×÷Ò»ÏÂÅжÏÔÙ°ÑÕâ¸ö·½·¨ÓÃÏÂvoid set(int field, int value)
......
Ò»¸öJSPÒ³Ãæ½ÓÊÕÆäËûÒ³ÃæÌá½»¹ýÀ´µÄFORM±íµ¥£¬µ«ÊÇÒªÇóÖ»½ÓÊÕµ±Ç°Õ¾µã¼°Æä×ÓÕ¾µãÌá½»¹ýÀ´µÄFORM±íµ¥£¬ÆäËûÕ¾µãÌá½»¹ýÀ´µÄ±íµ¥²»½ÓÊÕ£¬Õâ¸öÔõôÉèÖã¿
ÓùýÂËÆ÷
filter
½«µ±Ç°Õ¾µã¼°Æä×ÓÕ¾µã·ÅÒ»¸öĿ¼
È» ......
¸÷·´óÏÀ¸ø¸ö˼·£¬²»ÊÇÔÚÏßµÄÄÇÖÖ£¬¾ÍÊÇÒ»¸ö×öÆÕͨµÄÓ¦ÓóÌÐò¡£
´Ê¿âÔõôÉú³ÉÄØ£¿
²»»á¡£
ÒýÓÃ
´Ê¿âÔõôÉú³ÉÄØ£¿
ÕÒ±¾×Öµä
ÒýÓÃ
´Ê¿âÔõôÉú³ÉÄØ£¿
Êý¾Ý¿â ºÇºÇ
ÓÃmap ¼üÖµ¶ÔÓ¦
Èç¹ûÓÃÊý¾Ý¿ ......
ÌâÄ¿£º
ÓÐ1,2,3£¬4,5,6Áù¸öÊý×ÖÅÅÐò£¬ÓÃjava³ÌÐò¼ÆËã³öÅÅÐòµÄÖÖÀà¡£
ÒªÇó£ºÒ»£¬ÒÔ4¿ªÍ·
¶þ£¬2,3²»ÄÜÏàÁÚ
Èý£¬²»ÄÜÒÔ5¿ªÍ·
Ï£Íû´ó¼ÒÄܼ´ ......
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& ......