Hello,

I have some problems with the following: 

<sql:driver var="dataSource"
    driver="org.gjt.mm.mysql.Driver" 
    jdbcURL="jdbc:mysql://localhost/wimsbios"
    userName="mysql"
/>
          

<sql:query var="wantedBIOSs" dataSource="$dataSource">
select wanted_text from wanted_bios 
    ORDER BY wanted_text
</sql:query>

<table>
<c:forEach var="row" items="$wantedBIOSs.rows">
  <tr>
    <td><c:expr value="$row.wanted_text"/></td>  
  </tr>
</c:forEach>
</table>


(database table:

CREATE TABLE wanted_bios(
        wanted_id INT NOT NULL AUTO_INCREMENT,
        wanted_text TEXT NOT NULL,
        PRIMARY KEY (wanted_id),
        UNIQUE UC_wanted_id (wanted_id));

)

At
http://jakarta.apache.org/taglibs/doc/standard-doc/standard-ea3/DB_Functiona
lDescription_1_EA3.html
I read the following is legal:

<sql:query var="customers" dataSource="$dataSource">
  SELECT * FROM customers
  WHERE country = 'China'
   ORDER BY lastname
</sql:query>

<table>
<jc:forEach var="row" items="$customers.rows">
  <tr>
    <td><jc:expr value="$row.lastName"/></td>
    <td><jc:expr value="$row.firstName"/></td>
    <td><jc:expr value="$row.address"/></td>
  </tr>
</jc:forEach>
</table>

The problem is that when I use $row.wanted_text I get:

org.mozilla.javascript.Undefined@1c176c

in my browser

$row.get('wanted_text') does work....

One thing that maybe is related: at first I was getting org.mozilla.*
noclassdef found errors... I solved that by copying the file js.jar from the
standard-examples.war file ... but maybe that js.jar is out-of-date? Where
can I find the latest version of js.jar? It doesn't seem to be included in
the nightly build of the standard library ?
(jakarta-taglibs-standard-20020103.zip)

I'm using Resin 2.x latest build, Standard tag library latest build

Best regards
Wim Bervoets




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to