Unfortunately, this is limitiation of the JSP 1.1 specification
You have to supply directly complete "java.lang.Strings" to any custom tag attributes. Spec says nothing about partial dynamic values. Here is the solution: <% String key = "EMPLOYEE_PAYROLL_ID"; String prop_key = "property( "+ key+ " )"; %> <html:text property="<%= prop_key %>"/> It will work provided your action form bean has the following public accessible methods. public Object getProperty( String key ); public void setProperty( String key, Object value ); This is exactly same problem that I had for dynamic javascript handlers for say <htm:button>. -- Peter Pilgrim ++44 (0)207-545-9923 ............................................ Swamped under electionic mails ---------------------------------------- Message History ---------------------------------------- From: Maciej Kołodziej <[EMAIL PROTECTED]> on 15/01/2002 15:53 CET --<CUT>-- 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%>)"/> -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

