No it's not possible to set the tablename at runtime. Therefore the the <rtexprvalue>false</rtexprvalue> is set to false. Tried this sometime ago, but the TEI classes needs the tablename hardcoded!
Regards, Henner > -----Urspr�ngliche Nachricht----- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Im > Auftrag von Simon Giesecke > Gesendet: Montag, 31. M�rz 2003 16:54 > An: [EMAIL PROTECTED] > Betreff: [dbforms] Selecting table using a variable? > > > Hi, > > 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/sdnxxaff00300020> aff/direct/01/ > > > _______________________________________________ > DbForms Mailing List > http://www.wap-force.net/dbforms ------------------------------------------------------- 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
