Here my problem :
I want to use queryData tag in a select.
So there is my code :
<db:dbform multipart="false" autoUpdate="false" followUp="/my_page.jsp" maxRows="1" tableName="my_table_1">
<db:select fieldName="my_data" styleClass="clsSelectStyle">
<db:queryData name="my_data" query="SELECT my_data FROM my_table_2 WHERE other_data=5>"
/>
</db:select>
Result : it seems to have data in the select but they aren't displayed.
Someone can help me?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi !!
Here my problem :
I want to use queryData tag in a select.
So there is my code :
<db:dbform multipart="false" autoUpdate="false" followUp="/my_page.jsp" maxRows="1" tableName="my_table_1">
<db:select fieldName="my_data" styleClass="clsSelectStyle">
<db:queryData name="my_data" query="SELECT my_data FROM my_table_2 WHERE other_data=5>"
/>
</db:select>
Result : it seems to have data in the select but they aren't displayed.
Someone can help me?
That's right. See doc of queryData tag.
First entry of the select statement is used as key the rest for display.
So you must write
select my_data, my_data ...
to see anything
Henner
Yes, it works fine !!
Thanks !