Hello Nadia I dont know why you use <html:text name="somename" value= ' <bean:write name="myBeanName" property="id"/> ' /> instead of use <html:text name="myBeanName" property="id" /> did u configure myBeanName in the struts-congig.xml? does the action of the html:form use the bean-form myBeanName?
On Wed, 29 Sep 2004 15:03:02 -0400, Nadia Kunkov wrote > Hi, newbie question again. > I'm trying to use <bean:write> within <html:text> tag. > > Here is how I use it with just plain HTML and it works: > <input type=text name="somename" value= ' <bean:write > name="myBeanName" property="id"/> ' > or <input type=hidden > name="somename" value= ' <bean:write name="myBeanName" > property="id"/> ' myBeanName is a bean that was put in a session > with the data from the database. > > Instead of the <input type=text ...> etc. I'd like to use > <html:text....> or <html:hidden....> I tried <html:text > name="somename" value= ' <bean:write name="myBeanName" > property="id"/> ' /> but that's not right. Could you help me with this? > > Also, is having the bean in a session or request with data from the > database and then using bean:write, only way of displaying the data > on a page? > There is BeanUtils method to populate DTO with the data > from an action form, u can use common-bean but i think is better to loab the DTO property per property. > can I somehow populate an action form from a > bean instead of using bean:write in my jsp? I dont understand this. > > Thanks for your help > NK > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Ricardo Andrés Quintero R. Ubiquando Ltda. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]