You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Maciej KoĆodziej <Ma...@comarch.pl> on 2002/01/15 15:53:24 UTC
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>