cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Clarke <>
Subject flowscript, MySQL and blobs
Date Thu, 19 Feb 2004 13:50:38 GMT

I have the following flowscript:

    var dbconn = Database.getConnection("intranetdata");
    result = dbconn.query("SELECT meta_title, meta_description FROM
intranet_meta WHERE meta_id = ?", [meta_id]);

    var title = result.rows[0].meta_title;
    var description = result.rows[0].meta_description;

    form.getWidget("title").setValue (title);
    form.getWidget("description").setValue (description);

This is throwing the error:

Java class "[B" has no public instance field or method named "text".

Presumably this is because the database field meta_description is a blob.
How can I retrieve it as a normal string?

I'm using Cocoon 2.1.3 and the database is MySQL.

Thanks for any help,


Robert Clarke

Web Systems Developer
Bradford College

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message