I'm not really sure in understand you problem but in order for "property(key)" to work, you need to have the following methods on your form bean:
public Object getProperty(String key) public void setProperty(String key, Object value) These methods typically store your property values in a map of some sort. For example, if you had the following on your form bean: public Object getAddress(String key) public void setAddress(String key, Object value) you would be able to use "address(personal)" and "address(office)". Hope this helps, Fr. -----Original Message----- From: Maciej Kolodziej [mailto:[EMAIL PROTECTED]] Sent: 15 January 2002 15:53 To: Struts Users Mailing List Subject: Problem with mapped properties Hi, I'm building an application, which uses database as a source for configuration data. For example I have a page which enables users to customize their personal UI schema, like which columns they want to see in search result. Now that means, that I have to build dynamic html forms and use mapped properties to populate action forms. Also property attributes in form tags (like <html:text property="...") need to be set dynamically with values taken from db. I tried to do it like that: <% String key = "this is taken from database" %> <html:text property="property(<%=key%>)"/> but that doesn't work. I guess I don't have to mention, that using another jsp tag instead of <%=key%> doesn't work either. It just appears in html output as ordinary text - it's not parsed while converting .jsp to .java. I noticed, that these are the brackets that cause this malfunction. If I write: <html:text property="<%=key%>"/> everything works fine. -- Best regards, Maciej -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> ************************************************************************ The information in this email is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorised. If you are not an intended recipient, please notify the sender of this email immediately. You should not copy, use or disseminate the information contained in the email. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Capco. http://www.capco.com *********************************************************************** -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>