你让你的网站先经过一个action在转发到index.jsp,在action中设置好就行了。

解决方案 »

  1.   

    我这样做的,自己写一个普通的类,调用这个类的方法会返回这些值,然后你在页面就用这个bean得到就可以了
      

  2.   

    ArrayList xx=bean.getjjj();
    pageContext.setAttribute(xx,"jglist");<html:select property="jgcode">
         <html:options collection="jglist"  property="unicode" labelProperty="jgname"/>
             </html:select>
      

  3.   

    <html:select property="position">
              <html:options collection="availablePrivilege" property="position" labelProperty="name"/>
    </html:select>