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

JSP µÃµ½Ò³Ãæµã»÷radioµÄÖµ

<SCRIPT LANGUAGE="JavaScript">
var tt = "";
   var flag = false;
   var radios = document.getElementsByName("t1");//´ÓjspÖÐÈ¡radioµÄid»òradioµÄname
   for(var i=0;i<radios.length;i++){
   //Èç¹ûµ±Ç°ÓÐÑ¡ÖÐ
   if(radios[i].checked == true){
   //¸³Öµ
   tt = radios[i].value;
   //¸³Öµ
   flag = true;
   //½áÊøÑ­»·
   break;
   }
   }
   //ÅÐ¶Ï radio ÊÇ·ñÓÐÑ¡ÖÐ
   if(!flag){
   alert("No choose");
   return;
   }else{
   alert(tt);
   }
</SCRIPT>


Ïà¹ØÎĵµ£º

Jsp±à³Ì

 JAVA×ÛºÏÃæÊÔÌ⣺ҳÃæµÄץȡ¡¢½âÎö¡¢±£´æÊý¾Ý¿âºÍÉú³ÉHTMLµÄÒ³Ãæչʾ ÊÕ²Ø
´ÎÀý×Ó¿ÉÒÔÓÃÀ´Ñ§Ï°ÍøÂç±à³Ì£¬ÕýÔò±í´ïʽµÄʹÓ㬷ºÐÍ£¬Êý¾Ý¿âµÄ»ù±¾²Ù×÷µÈJAVA֪ʶ
ÎÊÌâÈçÏ£ºÀ´Ô´ÓÚÂÛ̳
http://topic.csdn.net/u/20090616/13/59aa4e2d-3752-45df-9c1b-c65c46c3e4d7.html
дһ¸öjspÒ³Ã棬·ÃÎÊʱÏÔʾ´ÓÏÂÃæµÄÒ³ÃæÌ ......

JSP×Ô¶¨Òå±êÇ©(Tag)

ʵÏÖJSP×Ô¶¨Òå±êÇ©µÄÒ»ÖÖ·½·¨£º
1.дһ¸öÀà¼Ì³ÐTagSupport»òÆäËûTagµÄʵÏÖÀà¡£
public class AllTag extends TagSupport {

@Override
public int doStartTag() throws JspException {
JspWriter out = pageContext.getOut();
try {
out.append("Hello World.");
} catch (IOException e) {
e.pri ......

java web¿ª·¢ÖУ¬ÈçºÎ²é¿´JSPºÍServlet°æ±¾

java web¿ª·¢ÖУ¬ÈçºÎ²é¿´JSPºÍServlet°æ±¾
2008-12-10 09:00
ÎÒÃÇÔÚjava web¿ª·¢µÄ¹ý³ÌÖУ¬ÓÐʱÔÚ×ÊÁÏÉÏ¿ÉÄÜ»áÌáµ½»·¾³ËùÒªÖ§³ÖµÄJSP£¬Servlet°æ±¾¡£Èç¹û°æ±¾µÍ¾Í¿ÉÄܳöÏÖ²âÊÔ´íÎó¡£
·½·¨£º´ò¿ªtomcatµÄcommon\lib Ŀ¼Ï£¬ÓÐÁ½¸öJARÎļþ£º jsp-api.jar servlet-api.jar ¡£Èç¹ûûÓУ¬ÄÇ¿ÉÄÜÊÇÄãûÓÐÌí¼Ó½øÀ´¡£½âѹÕâÁ½¸ ......

SSH ÏîÄ¿ÖУ¬action»ñÈ¡jspÒ³Ãæ´«¹ýÀ´µÄselectÖµ

ÏîÄ¿¿ò¼ÜS2SH,jspÒ³ÃæÈçÏ£¬selectÁбíÉèΪmultiple¡£ÎªÁËÄÜÔÚactionÀïÈ¡µ½Ç°Ì¨½çÃæselectÁбíµÄ¶àÑ¡Öµ£¬Ï¹¸ãÁËÁ½Ì죬½ñÌìÖÕÓڳɹ¦¡£Æäʵºǫ́actionȡǰ̨jspÒ³ÃæµÄÖµºÜ¼òµ¥£¬·Ï»°²»¶à˵£¬ÏÈÌù´úÂ룺
<body>
<form action="sendMsg.action?senderId=${users.id }&username=${users.username}" m ......

jspÖÐʹÓÃEXCEL×é¼þ½«±í¸ñµ¼³öΪEXCELÎļþ

´ËÖÖ·½·¨Ê¹ÓÃexcelµÄ×é¼þ£¬ÒªÇó¿Í»§¶Ë±ØÐë×°ÓÐexcel³ÌÐò¡£·½·¨Êǽ«±í¸ñÖеÄÿ¸ötd±êÇ©µÄÄÚÈÝÈ¡³ö£¬×÷ΪexcelÎļþÖÐÒ»¸öµ¥Ôª¸ñµÄÄÚÈÝ¡£
1¡¢ÔÚÍøÒ³ÖÐÌí¼Ójava½Å±¾
function AutomateExcel(tableid,unusecolumn)
{
 // »ñÈ¡excel×é¼þ
 var oXL = new ActiveXObject("Excel.Application");
 
 // ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ