ÎÒÃdz£³£°ÑÒ»×鼯ºÏ·Åµ½Ã¿¸öÒ³ÃæµÄÏÂÀ¿òÖУ¬ÕâÀïÀûÓÃstruts1µÄhtml:optionsCollection¿ÉÒÔÊ¡ºÜ¶àÊ¡£
¾Ù¸öÀý×Ó£º
дһ¸ö¹«¹²¾²Ì¬·½·¨£º
public static Collection<LabelValueBean> getAllType() {
Collection<LabelValueBean> col = new ArrayList<LabelValueBean>();
col.add(new LabelValueBean("ËùÓÐÖÕ¶Ë", ""));
col.add(new LabelValueBean("2GÈ«²¿", "1%"));
col.add(new LabelValueBean("2GÊÖ»ú", "101"));
col.add(new LabelValueBean("3GÈ«²¿", "2%"));
col.add(new LabelValueBean("3GÊÖ»ú", "201"));
col.add(new LabelValueBean("3GÊý¾Ý¿¨", "202"));
col.add(new LabelValueBean("3GÉÏÍø±¾", "203"));
col.add(new LabelValueBean("3G¼ÒÍ¥Íø¹Ø", "204"));
col.add(new LabelValueBean("3GÎÞÏ߹̻°", "205"));
return col;
}
È»ºóÔÚÇëÇóactionµÄʱºò·Åµ½requestÖС£È磺request.setAttribute£¨"types",xxx.getAllType()£©;
ÔÚÒ³ÃæÉÏ¿ÉÒÔÏÔʾΪ£º
<nested:select property="yourproperty">
<html:optionsCollection name="types"/>
</nested:select>
ÕâÑù¾Í¿ÉÒÔÔÚÒ³ÃæÉϵõ½Ò»¸öÏÂÀÁÐ±í£¬ÕâÑù×öµÄºÃ´¦Ö®Ò»¾ÍÊÇÊéд¼òµ¥£¬·½±ãºóÆÚά»¤
²âÊÔÓï·¨¸ßÁÁµÄ C# ´úÂëµÄ html fragment Éú³É:
ÓÃcsdn blog API ·¢²¼.
ÏÂÃæÊÇ:
public class HtmlWriter
{
static Dictionary _colors;
static int _colorNum;
static StringBuilder _colorString;
ÏÈÓÃÏֳɵÄ×é¼þÍæһϣ¬Ò»»áÔÙÈ¥¿´¿´×é¼þÔ´ÂëÑо¿Ò»Ï¡£
http://code.google.com/p/flex-iframe/
ÏÂÔØÁËflexiframe.swc£¬ÒýÈ빤³Ì¡£
flex´úÂë
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"
......
ÈçºÎÏòHTML 5¹ý¶É£¿
¡¡¡¡Web¿ª·¢ÉçÇøµÄ²»ÉÙÈËÈÏΪתÏòHTML 5Òª½÷É÷¡£±ÈÈ磬ËäȻ΢Èí¼Æ»®ÔÚIE9ÖÐÖ§³ÖHTML 5£¬µ«Õâ¼ÒÈí¼þÒµ¾Þ뢶ÔÓÚÔÚHTML 5»¹Ã»ÓÐÕýʽ³ÉΪ±ê׼֮ǰ֧³ÖËüÐÄ´æÒÉÂÇ¡£Î¢ÈíWindowsÊÂÒµ²¿×ܲÃSteven Sinofsky×î½ü½ÓÊܲɷÃʱ±íʾ£º“ÏÈ˵×Ô¼º»ùÓÚ±ê×¼£¬µ«ËæºóÓÖ˵ÄãÊÇ×î¼æÈÝHTML 5µÄä¯ÀÀÆ÷£¬ÕâÖÖ×ö·¨²»Ã÷ÖÇ£ ......
¶¨ÒåºÍÓ÷¨
<!DOCTYPE> ÉùÃ÷λÓÚÎĵµÖеÄ×îÇ°ÃæµÄλÖ㬴¦ÓÚ <html> ±êǩ֮ǰ¡£´Ë±êÇ©¿É¸æÖªä¯ÀÀÆ÷ÎĵµÊ¹ÓÃÄÄÖÖ HTML »ò XHTML ¹æ·¶¡£
¸Ã±êÇ©¿ÉÉùÃ÷ÈýÖÖ DTD ÀàÐÍ£¬·Ö±ð±íʾÑϸñ°æ±¾¡¢¹ý¶É°æ±¾ÒÔ¼°»ùÓÚ¿ò¼ÜµÄ HTML Îĵµ¡£
ÒÔÏÂÃæÕâ¸ö <!DOCTYPE> ±êǩΪÀý£º
<!DOCTYPE html
PUBLIC "-//W3C//DT ......