<html:select  property="type" styleId="type">
<html:options collection="selectListType" labelProperty="label" property="value" />
</html:select>上面的property="type"是什么意思?
styleId="type"是什么意思?
collection="selectListType"是什么意思?labelProperty="label"是什么意思?property="value"是什么意思?呵呵,小弟以前用struts2的,对这个不熟悉,麻烦各位哥哥姐姐说的详细点

解决方案 »

  1.   


    还在用struts1啊,struts2都这么长时间了
      

  2.   

    以前一直在用struts2,进了一家还算大的公司,谁知道还在用struts1……哭啊
    我机器上装的是oracle10g人家还在用9i呢,哭啊……
      

  3.   

    property="type"是options中你选择的值,
    collection="selectListType"是select下拉框中的所有值
    labelProperty="label" property="value"
    至两个你可以理解为数据库中的id,与对应的name 第一个是name,后面的是id
      

  4.   

    顺便在问一下,这东西怎么跟传过来的list对应起来?
    比如说我list里有id和name两列,应该怎么写?