I already posted this to the developers mailing list, but I thought that
there are possibly more people subscribed to this list.
As I've seen, it is not possible to set the tableName attribute of the dbform tag using a variable/parameter, i.e. anything that is only available at runtime.
First of all, trying to do so yields a ClassCastException in
DbFromTagTEI.getVariableInfo in the line
String table = data.getAttributeString("tableName"); Perhaps this condition should be checked somewhere by
data.getAttribute("tableName") != TagData.REQUEST_TIME_VALUE
and returning a more meaningful error message.But, the intention of my writing this message was to ask if it were possible to allow the tableName to be set at runtime? This would allow for something like:
...
<db:dbform tableName="<%= tableName %>">
<db:header>
<table>
<tr>
<td>
<table align="left" border="1" rules="cols" >
<%@ include file="<%= tableName + ".jsp" %>" %>
<db:errors/>
</db:header>...
Bye, Simon
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
DbForms Mailing List
http://www.wap-force.net/dbforms
