本帖最后由 hui461070850 于 2010-08-07 11:48:32 编辑

解决方案 »

  1.   

    问题解决了,真快
    后台
    this.employee = this.employeeService.FindById(ide);

    ServletActionContext.getRequest().setAttribute("employeeOne", employee);headerValue="%{#request.employeeOne.department.departmentName}"
      

  2.   

    Map map = new LinkedHashMap();
      

  3.   

    struts 2 的select 标签是不能够接受表达式要是想赋值的话只能够使通过listKey,listValue两个属性进行赋值 。同时你的
    <s:select name="departmentId" list="ln" label="部门" listKey="key" listValue="value" headerValue='${department.departmentName}' headerKey="0" />
      name="departmentId" 必须是你在action当中传过去的列表(必须是迭代的List,Map,等)所以你的报错是表达式语言使用错误