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]>

Reply via email to