JSP ÍøÒ³ÖÐÈçºÎÈ¥µôradioÿ¸öÑ¡ÏîÇ°µÄÄǸöСԲȦ
ÈçÌ⣬ÎÒÊÇÓÃstruts2×öµÄÍøÒ³£¬ÓÃÁËradio±êÇ©£¬Ã¿¸öÑ¡ÏîÇ°¶¼ÓÐÒ»¸öСԲȦ£¬ÎÒÐèÒª°ÑСԲȦȥµô£¬µ¥»÷×־ͺ㬱»Ñ¡ÖеÄÑ¡Ïî±³¾°±äÉ«¡£
¾ÍÏñ´ó¶àÊýÍøÕ¾µÄ·ÖÀà¼ìË÷£¬±ÈÈçÕâ¸öÍøÕ¾µÄÄÇÑùµÄ¸ù¾Ý¸÷ÖÖÌõ¼þµÄʵʱËÑË÷£º
http://www.onlystu.com/house.php?modid=010003&act=chuzu
²»Ã÷°×£¬Ñ¡ÔñÌõ¼þ¸úradio±êÇ©ÓйØϵÂ𣿣¿
Ò»¿´¾ÍÊÇa±êÇ©ÉèÖõÄÑùʽ
ÎÒKAO£¬
Õâ¸öÄãÄÜ¿´³Éradio£¡
Ç¿
Çë˵³ö½«½â¾ö·½°¸£¬Ë¶¼Óв»»áµÄʱºò
ÕâÊÇÇ°ºǫ́µÄ½áºÏ
ÎÄ×ÖÏȶ¼·ÅÔÚ²ã»òspan
É趨Á½ÖÖCSSÀࣨ.c1 .c2£©
Ò»ÖÖÊÇÑ¡ÖкóµÄ£¬Ò»ÖÖÊÇûѡÖеÄ
Ñ¡ÖÐÒÔºóµÄ °ÑÑ¡ÖеIJãÓÃc1±íʾ£¬ÆäËüµÄÓÃc2
´óÖ¾ÍÕâÑù
<label><input type="radio" style="display:none">text</label>
<label><input type="radio" style="display:none">text</label>
//js
var radioList = document.getElementsByTagName("input");
for(var i=0;i<radioList.length;i+)
{
radioList[i].parentNode[0].style.background="#fff";
radioList[i].onclick=function()
{
this. parentNode.style.background="#ccc";
}
}
//jquery
$("radio").click(function(){
$("label").css("background","#fff");
$(this).parent().css("background","#ccc");
});
ÉÏÃæµÄjs²¿·Öд´íÁË ÕâÑùд
var radioList = do
Ïà¹ØÎÊ´ð£º
ÔÚ²éѯºó½«²éѯ³öÀ´µÄÖµ¸³¸ø¸÷ÊäÈë¿ò
<c:if test="${not empty dataValue}">
fm.SAMPLING_DATE.value=" <c:out value='${dataValue.SAMPLING_DATE}'/ ......
ÏÂÃæcategoryTreeCont.jsp ´úÂë
----------------------------------------
Java code:
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
< ......
ÎÒ°ÑjavabeanµÄÔ´´úÂëSetGetPropertytest.Java·ÅÔÚC:\tomcat\webapps\mywork\WEB-
INF\classes\comÖÐ ÊDz»ÊÇÎҵİü´´½¨´íÁË»¹ÊÇ£¿ÒªÊǽ¨´íÁË,ËÄܸæËßÎÒÔõô½¨Âð? лл´ó¼Ò
Ç°À´°ï棬ͬʱף´ó¼ÒÖÐÇï¿ ......
<script language="javaScript">
function select()
{
document.selectpages.selectnum.value=document.selectpages.selectpage.value;
document.selectpages.submit();
}
&l ......
×î½üÓÐÒ»¸ö´ó×÷ÒµÏë¸ãÒ»¸öͼƬ¸ñʽת»»µÄwebapp£¬ÆäÖÐÓõ½ÁËbase64±àÂ룬ÓÃϱߵĴúÂëÈç¹ûÊÇ´¿JAVAûÓÐÎÊÌ⣬µ«Ð´ÔÚJSPÀï¡°return encoder.encode(data); ¡±Õâ¾ä¾Í×ܱ¨´í¡°org.apache.jasper.JasperException¡±£¬ÍøÉ ......