¹ºÎï³µÐèÒªµÄ¼¸¸öjspÒ³Ãæ
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/page/share/taglib.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<TITLE>¹ºÎï³µ °Í°ÍÔ˶¯Íø</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<META http-equiv=Content-Language content=zh-CN>
<LINK href="/css/new_cart.css" rel="stylesheet" type="text/css">
<link href="/css/global/header01.css" rel="stylesheet" type="text/css">
<SCRIPT language=JavaScript src="/js/FoshanRen.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
<!--
/** »ñÈ¡ÒÔÖ¸¶¨×Ö·û´®ÎªÇ°×ºµÄÊäÈë×ֶμ¯ºÏ **/
/** Êý×ÖÊäÈë¸ñʽÊÇ·ñÕýÈ·(³¤¶È1-4룬µÚÒ»¸öÊý×Ö±ØÐëÊÇ1-9) **/
function numericFormat(strNumber){
var newPar=/^[1-9]\d{0,3}$/;
return newPar.test(strNumber);
}
function getInputsByname(name, etype){//
var inputs = document.getElementsByTagName("input");
var texts = new Array();
var y = 0;
for (var i = 0; i < inputs.length; i++) {
if (inputs[i].type == etype && inputs[i].name!=null && inputs[i].name.substring(0, name.length) == name) {
texts[y] = inputs[i];
y++;
}
}
return texts;
}
function modifyAmount(){
if(validateAmount()){
var form = document.forms["buycart"];
form.method.value="updateNumber";
form.submit();
}
}
/** ÑéÖ¤¹ºÂòÊýÁ¿×Ö¶Î **/
function validateAmount(){
var amounts = getInputsByname("amount_", "text");
if(amounts.length==0){
alert("Äú»¹Ã»ÓйºÂòÉÌÆ·");
return false;
}else{
for (var i = 0; i < amounts.length; i++) {
var amount = amounts[i];
if(amount.v
Ïà¹ØÎĵµ£º
ÔÚÏîÄ¿ÖУ¬ÎÒÃǾ³£Óöµ½ÐèÒªÔÚjspÒ³ÃæÇл»Öд«µÝÖÐÎÄ×Ö·û¡£ÕâÖ÷ÒªÓÐÁ½ÖÖ·½Ê½¡£
¡¡¡¡URL·½Ê½£¬ÀýÈ磺http://website/test1.jsp?act=add&type=Æ»¹û¶m=%20D%20B
¡¡¡¡FORM·½Ê½£¬ÀýÈ磺
¡¡¡¡<form name=test mehtod="post">
¡¡¡¡<input type=hidden name=text2 value="ÖÐÎÄ">
¡¡¡¡<input type=t ......
GBK±àÂë
GBK±àÂëÊÇÖйúÖÆ¶©µÄ¡¢µÈͬÓÚUCSµÄеÄÖÐÎıàÂëÀ©Õ¹¹ú¼Ò±ê×¼¡£GBK¹¤×÷С×éÓÚ1995Äê10Ô£¬Í¬Äê12ÔÂÍê³ÉGBK¹æ·¶¡£¸Ã±àÂë±ê×¼¼æÈÝGB2312£¬¹²ÊÕ¼ºº×Ö21003¸ö¡¢·ûºÅ883¸ö£¬²¢Ìṩ1894¸öÔì×ÖÂë룬¼ò¡¢·±Ìå×ÖÈÚÓÚÒ»¿â¡£
UTF-8±àÂë
UTF-8±àÂë¿ÉÒÔͨ¹ýÆÁ±ÎλºÍÒÆÎ»²Ù×÷¿ìËÙ¶Áд¡£×Ö·û´®±È½Ïʱstrcmp()ºÍwcscmp()µÄ·µ»Ø½ ......
ÒÔÏÂÊô¸öÈËÏë·¨£¡Ò²ÐíÊǶÔJAVAÒ»¼ûÖÓÇé¶øËµ£¡
ѧ¹ýASP.NETµÄÔÙȥѧJSP£¬ÄǸоõ¾ÍÍêÈ«²»Ò»ÑùÁ˰¡£¡Èç¹û¹ý¶É¹ýÀ´ÁË£¬ÄÇ»¹ºÃ£¬Ã»¹ý¶ÉÄǽвҰ¡£¡Á½¸öÊÀ½ç°¡£¡»¹ºÃ£»ÎÒÊǶɹýÁË£¬Ò»ÐľÍÊÇJAVA£¬ËùÒÔÄÔ×ÓÀï¶¼ÊÇJAVAµÄÀíÄ¿ª·¢JSPºÍ¿ª·¢JAVAÓ¦ÓóÌÐòÒ»Ñù£¬ÎÞ·ÇJSP¶àÁ˸öWEBROOT¡£
  ......
̸JSPÓëXMLµÄ½»»¥
ʹÓÃJavaServer PagesÓÐÈýÖÖ²»Í¬µÄ·½·¨ÓÃÓÚ´¦ÀíXMLÎĵµ£¬Ã¿ÖÖ·½·¨¶¼ÓÐÀûÓÚÌá¸ß·ÖÀëÒ³Ãæ´úÂëÓëXMLÊý¾ÝµÄˮƽ£¬ÓÐÀûÓÚ¼ò»¯¿ª·¢ÍøÒ³µÄ¸´ÔӶȲ¢ÇÒ¸ÄÉÆÌá¸ß×é¼þÓëÒ³Ãæ´úÂëµÄ¿ÉÖØÓÃÐÔ¡£
¡¡¡¡JavaServer Pages ( JSP)ºÍXMLÊÇSunµÄJ2EEµÄÁ½¸öÖÁ¹Ø½ôÒªµÄ×é¼þ¡£ JSPÊÇÓÃÓÚ´´½¨Ó¦ÓóÌÐò·þÎñÆ÷¶Ë³ÌÐòµÄÓÐЧ¹¤¾ß£¬¶ø¿ ......
ÔÚWEBÓ¦ÓÃÖÐ,Èç¹ûʹÓÃjsp×÷Ϊview²ãµÄÏÔʾģ°å,¶¼»á±»¿Õ¸ñ/¿Õ»»ÐÐÎÊÌâËùÀ§ÈÅ.
Õâ¸öÎÊÌâµ±ÄêÒ²À§ÈÅÁËÎұȽϳ¤µÄʱ¼ä.ÒòΪÔÚjspÄÚʹÓõÄEL±êÇ©ºÍÆäËû±êǩʱ,»á²úÉú´óÁ¿µÄ¿Õ¸ñºÍ»»Ðзû.ÀýÈç:
------- start ----------
<c:choose>
<c:when test="${fn:length(mainPageList)>1&}&q ......