how can i setup the value of html:text and html:textarea ?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   zhebin_cong
Posted On:   Friday, August 16, 2002 06:10 AM


hello
i want to setup the value of html:text and html:textarea,but both of the following two expression don't work:



/>



"/>


who can help me?

thank you very much

Re: how can i setup the value of html:text and html:textarea ?

Posted By:   Ed_Hoden  
Posted On:   Friday, August 16, 2002 06:38 AM

You should set your default values in the ActionForm itself in advance of displaying it and store it in whichever context you are using. Example:


[in SomeAction]

MyForm myForm = new MyForm();

myForm.setName( "myFormName" );

request.getSession().setAttribute( "myForm", myForm );




[in JSP]








Struts will then populate the html form with the value of the property. --HTH Ed
About | Sitemap | Contact