John - what are you actually trying to do here? My guess is that you're trying to "pre-load" the form with values you already have (probably obtained from JDBC or some such). That being the case, you should really take a look at how forms can use formbeans. A really good read for someone learning Struts is Chuck Cavaness' book review on theserverside.com:
http://www.theserverside.com/resources/strutsreview.jsp That should de-newbiefy you pretty quick. Give it a quick once-over and then you can reference back to a given section as needed. John Sherlock wrote: >Hi, > >I'm new to struts development so this should be a no-brainer for someone... > >I have an object in the session and i need to access the object to set the >'value' attribute of a <html:text> element. I can set the value of an >ordinary html <input> tag using the <bean:write> tag as follows... > ><input type="text" name="firstName" value="<bean:write name="customer" >property="firstName" scope="session"/>"> > >...but i can't use the same approach to set the 'value' attribute of a ><html:text> tag as it requires putting one tag-lib tag inside the other... > ><html:text property="firstName" value="<bean:write name="customer" >property="firstName" scope="session"/>"/> > >is there a simple way of doing this? > >Thanks in advance, > >Jonny :) > >Software Engineer >Macalla Software Ltd > -- Eddie Bush -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

