<html:text name="formbean" property="变量名" maxlength="10" size="10" />

解决方案 »

  1.   

    value属性的用法:Value to which this field should be initialized. [Use the corresponding bean property value] [RT Expr] 
    我看不懂 :(你自己看看吧。
      

  2.   

    这样能把数据送到文本框显示出来?
    文本框中的内容不是通过value来设的吗?
      

  3.   

    text - Render A Text Input Field
    Renders an HTML <input> element of type text/code>, populated from the specified value or the specified property of the bean associated with our current form. This tag is only valid when nested inside a form tag body.Attribute Description 
    accessKey The keyboard character used to move focus immediately to this element.  
    maxlength Maximum number of input characters to accept. [No limit]  
    name The attribute name of the bean whose properties are consulted when rendering the current value of this input field. If not specified, the bean associated with the form tag we are nested within is utilized.  
    onBlur JavaScript event handler executed when this element loses input focus.  
    onChange JavaScript event handler executed when this element loses input focus and its value has changed.  
    onClick JavaScript event handler executed when this element receives a mouse click.  
    onDblClick JavaScript event handler executed when this element receives a mouse double click.  
    onFocus JavaScript event handler executed when this element receives input focus.  
    onKeyDown JavaScript event handler executed when this element has focus and a key is depressed.  
    onKeyPress JavaScript event handler executed when this element has focus and a key is depressed and released.  
    onKeyUp JavaScript event handler executed when this element has focus and a key is released.  
    onMouseDown JavaScript event handler executed when this element is under the mouse pointer and a mouse button is depressed.  
    onMouseMove JavaScript event handler executed when this element is under the mouse pointer and the pointer is moved.  
    onMouseOut JavaScript event handler executed when this element was under the mouse pointer but the pointer was moved outside the element.  
    onMouseOver JavaScript event handler executed when this element was not under the mouse pointer but the pointer is moved inside the element.  
    onMouseUp JavaScript event handler executed when this element is under the mouse pointer and a mouse button is released.  
    onSelect JavaScript event handler executed when this element has focus and some text is selected.  
    property Name of this input field, and the name of the corresponding bean property if value is not specified. The corresponding bean property (if any) must be of type String.  
    size Number of character positions to allocate. [Browser default]  
    style CSS styles to be applied to this HTML element.  
    styleClass CSS stylesheet class to be applied to this HTML element.  
    tabIndex The tab order (ascending positive integers) for this element.  
    value Value to which this field should be initialized. [Use the corresponding bean property value]  
      

  4.   

    哦,这个呀。你要取值阿,可以啊。在formbean 中写个对变量的set,get方法,然后再jsp页面上那么写就可以了(在需要处理变量的时候,get一下.需要显示的时候set)