你的那个根据输入的用户ID,读取用户对象,写在哪里了?
如果是从servlet传过来的,在servlet里你需要将查询结果request.setAttribute
 (假如查询结果为xxx,则request.setAttribute("xxx",xxx);)
然后在jsp页面中这么写:
<logic:iterate id="UserForm" name="xxx"type="com.ideacom.siis.domain.yyy">
   <bean:write name="UserForm" property="name"/>
</logic:iterate>
yyy为你这个表的get、set方法的bean

解决方案 »

  1.   

    你提示的错误是根本系统就不知道你的UserForm是什么,你没有定义他而且你用的这种方法叫做标签可是像你这种就查询一条纪录的,我建议别用标签了,就直接在jsp或者servlet里写查询取值吧!
      

  2.   

    同意whatwhynot(努力努力!) 的
    标签默认查找范围是session,你没有保存,怎么得到啊?
      

  3.   

    在Action中调用form这个参数,即:
    public ActionForward perform(ActionMapping mapping,                          ActionForm form,HttpServletRequest request,                           HttpServletResponse response){}
    中的ActionForm form,使用你的actionfrom中的setXXX方法就可以实现了,然后在页面直接使用,就和你上面使用方法一样
      

  4.   

    问题是我获取数据的ActionForm和我要写入的ActionForm 不是同一个。
      

  5.   

    to  bellatong(童童):
    不是同一个也没关系。
    你先new一个你要写入的action form
    ndexActionForm iaf = new indexActionForm();
    然后
    设置你要的值
    iaf.setAge("27");
    iaf.setName("myname");
    最后:放到request 或者 session 里
    request.setAttribute("indexActionForm",iaf);
    这样,你在要显示的jsp页面就可以可以取得这些值了。。
      

  6.   

    ActionForm是存储在session(request)中的,你可以用getAttribute("myForm");得到它的引用,这样你就可以操作了啊!
      

  7.   

    把你的action在struts-config的定义贴出来看一下
      

  8.   

    建议使用JSTLAction中,
      String temp= "Hello,Struts"  
    session.setAttribute("temp",temp);
    jsp中,
      <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
      <html:form action="/xxx.do">   
        <c:out value="${temp}"/>
      </html:form>
      

  9.   

    Action中,
       
       session.setAttribute("UserForm",object);
    jsp中
    <bean:write name="UserForm" property="temp"/>
      memberName:object's member name