×ö¹ýJspµÄ½øÀ´Ï¡£ - .NET¼¼Êõ / ASP.NET
JavaÖеÄAttribute£¬Asp.netÈçºÎ±íÊ¾ÄØ£¿
ÀýÈçJava code:
request.setAttribute("cla", clDao.Select10BuNewID("1"));request.getRequestDispatcher("typeclass.jsp?pages="+c3).forward(request, response);
ÀýÈçÒ³ÃæÉÏÓÐÒ»¸öbtnSend°´Å¥£¬ÔÚµã»÷Õâ¸ö°´Å¥Ê±Ï£Íûµ¯³öÒ»¸öÊÇ·ñ¶Ô»°¿ò£¬
ÔÚPage_LoadʼþÖÐÌí¼Ó
btnSend.Attributes.Add("onclick","javascript:return confirm('ÄãÊÇ·ñÈ·ÈÏ·¢ËÍ£¿');");
ÔΣ¬ÄãɶÒâ˼°¡
ÄãÕæµÄ¶®JspµÄAttribute°¡£¿
jspÖеÄAttributeÊǸö·þÎñ¶ËÈÝÆ÷¡£ºÍsession²î²»¶à´æÊý¾ÝµÄ¡£
Session["clDao.Select10BuNewID("1")"]="cla";
Server.Transfer("typeclass.jsp?pages="+c3, true);
request.getRequestDispatcher().forwar
Ïà¹ØÎÊ´ð£º
JSPÒ³ÃæÖÐÓжà¸öradio°´Å¥
JSPÒ³Ãæ½«²ÎÊýPOST¸øservlet
ÒªÇóÈçÏÂ;
1.Ñ¡ÔñÒ»¸öradio£¬µ÷ÓÃservlet servletÖиù¾Ý²ÎÊýµ÷ÓÃÆäËû½Ó¿Ú£¬³ý·ÇÑ¡ÖиÃradio²¢µã»÷JSPÖеÄʵР......
ÎÒÓÃasp.net¿ª·¢wapÕ¾µã£¬Íê³ÉºóÈ¥http://validator.w3.org/ÕâÀïÑéÖ¤ÎÒµÄWapÒ³ÃæÊÇ·ñ±ê×¼£¬ÆäËüÎÊÌâ¶¼¸ÄºÃÁË£¬
¾ÍÊ£ÕâÒ»¸ö´íÎóÁË£¬°´×ÖÃæÒâ˼Àí½âÊÇ˵nameÊôÐÔÒÑ´æÔÚ£¬ÀàËÆÕâÑùµÄ´íÎó»¹Óв»ÄÜÓÃborder ,align,sizeµ ......
ÎÒÓÐÁ½¸ödropdownlist¶¼°óºÃÁËÖµ£¬ÏëÑ¡ÖÐÒ»¸ödropdownlistÖеÄÖµ£¬È»ºóÔÚÁíÒ»¸ödropdownlistÖÐÑ¡ÖÐÏàÓ¦µÄÒ»Ïî¡£
²»ÊÇ´Óа󶨵ڶþ¸ödropdownlist£¬ÊÇÔÚÒѾ°óºÃµÄÖµµ±ÖÐÑ¡ÖÐÒ»¸ö¡£
ÎÒÏëÓÃjsд
ÇóÖú
Äã¿ÉÒÔ°Ñdrop ......
³ÌÐòÈçÏÂ:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page language="java" %>
<%@ page import="com.mysql.jdbc.Driver" %>
<%@ page import ......
ÓÃStruts2+Spring+Hibernate×öµÄÒ»¸öwebµÄERPСÏîÄ¿£¬×ܲ¿Ò»Ì¨·þÎñÆ÷£¨Êý¾Ý¿âÓëWeb·þÎñÆ÷ÔÚͬһ»ú×ÓÉÏ£©Êǵ¥¶À²¦ºÅÉÏÍøµÄ£¬Óë·Ö¹«Ë¾Ã»ÓÐÓþÖÓòÍøÏߣ¬Ó²¼þÌ«¹óÁË£¬ÆäËû¼¸¸öÊ¡Êзֹ«Ë¾¶¼À´·ÃÎÊÕâÒ»·þÎñÆ÷£¬¸Ð¾õºǫ́´ú ......