If you want to try you could set <rtexprvalue> to true in your (cvs)
dbforms/etc/taglib-docu.xml
right now it is:
<attribute>
<name>tableName</name>
<rtexprvalue>false</rtexprvalue>
and then build dbforms. You'll get a new taglib that you could try.
I just don't know enough to say whether that switch is really advisable
and can be made for everyone or not.
Luca or Henner might know.
Shawn
On Mon, 2003-03-31 at 23:53, Simon Giesecke wrote:
> 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/sdnxxaff00300020aff/direct/01/
> _______________________________________________
> DbForms Mailing List
>
> http://www.wap-force.net/dbforms
--
Shawn <[EMAIL PROTECTED]>
-------------------------------------------------------
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