下拉列表怎么显示

<select name="modelPropertyVo.type" id="type" value="3" onchange="typeselect('4028812231f0b45a0131f0c976a10001');" >
                                                <option value="1">文本框</option>
                                                <option value="2">文本域</option>
                                                <option value="3">下拉框</option>
    </select>

我查询出来modelPropertyVo.type=3,怎么写才能让下拉框显示在最前面,总是显示 文本框

借助jstl的if标签
形如:
[code="html"]


selected="selected"/c:if

文本框

selected="selected"/c:if
文本域

selected="selected"/c:if
下拉框



[/code]

[code="html"]
文本框
文本域
下拉框
[/code]

你在页面上导入jstl标签库了吗?

最笨的方法


文本框
/c:if

文本框
/c:if
...... 重复复制,如果值可以从列表获取就好是用循环来处理