You must call an Action before, this action will put the bean in the request
scope with the name you defined for it in struts-config.xml.

req.setAttribute("name",bean);

Regards.

-----Mensaje original-----
De: deepank [mailto:[EMAIL PROTECTED]]
Enviado el: jueves, 26 de septiembre de 2002 15:16
Para: Struts Users Mailing List
Asunto: initilaizing form bean values

hi,

i have form bean for which i would like to initialize some fields with
values before displaying the jsp.

for example if i have something like this in my jsp, how can i
initialize this input field from my Action class with a value that i get
from the database


<html:text property="mail_id" />, this should display some initial data

any help will be apprecaited

Deepank


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

Reply via email to