Here is an example that shows another trick I got from some folks on this
list.  Define a Java variable and insert it in place of the Struts tag.
Remember tags are interpreted at compile time and replaced with Java code.
Therefore you can't "nest" tags from any taglib.  You have to resort to pure
JSP for nesting purposes.

  <bean:define id="thisValue" name="decl"
     type="java.lang.String" />
  <html:text property="declarations"
     value="<%= thisValue%>" size="50"/>


bob

----- Original Message -----
From: "Gemes Tibor" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, August 16, 2002 8:51 AM
Subject: Re: how can i set up the value of the html:text and html:textarea?


2002. augusztus 16. 15:05 d¨¢tummal congzhebin ezt ¨ªrtad:
> hello
> i want to setup the value of html:text and html:textarea,but both of the
> following two expression don't work:
> <html:text property="name" size="20" value=<bean:write name="msgBoard"
> property="name" scope="session"/>/>
>
> <html:text property="name" size="20" value="<bean:write name="msgBoard"
> property="name" scope="session"/>"/>

You should populate your FormBean in the Action that takes you to this page,
and then use only the "property" attribute and omit the "value" attribute.

Hth,

Tib

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to