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

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();
}


µ±±íµ¥ÊäÈëΪ¿ÕµÄʱºò£¬µ¯³öÌáʾ
ÏÖÔÚÏë¼ÓÒ»¸öÅжϣ¬¼´µ±±íµ¥ÊäÈëÊý¾Ý´óÓÚ¿â´


Ïà¹ØÎÊ´ð£º

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

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

JavaScriptº¯ÊýÒ»¸öºÜÆæ¹ÖµÄÎÊÌâ - Java / Java EE

ÔÚJSPÒ³ÃæÓÐÒ»¸ö<input type="hidden" name="index" value="0">/>¿Ø¼þ
µ±ÎÒÓÃÏÂÃæµÄJavaScriptº¯Êý¸Ä±äÆävalueµÄÖµµÄʱºò Èç¹ûÂú×ãÌõ¼þ£¨¼´i>=3µÄʱºò£©ÎªÊ²Ã´valueµÄ ......

Çó½ÌJSPÏîÄ¿ÖÐÔËÓÃÄ£°åµÄ¼¼Êõ - Java / Web ¿ª·¢

ÇëÎʸ÷λ¸ç¸ç½ã½ã£¬ÈçºÎÔËÓÃÏֳɵÄÄ£°åÀ´ÖÆ×÷ƯÁÁµÄJSPÍøҳѽ,»ØÕßÓзÖ!
×Ô¼º¶¥Ï£¬×ÜÓиßÊÖ°É,ÆÚ´ýÖÐ......


Èç¹ûÖ±½ÓÒýÓýøÈ¥

¿ÉÒÔÖ±½ÓÓÃjspµÄÖ¸ÁҲ¿ÉÒÔÓÃfreemarkÒýÓ㬼ǵøø·Ö

лл¸÷λÁË£¬¿´À´Î ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ