cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Clarke <r.cla...@bilk.ac.uk>
Subject flowscript, MySQL and blobs
Date Thu, 19 Feb 2004 13:50:38 GMT
Hello,

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]);
    dbconn.close();

    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,

Rob

#############
Robert Clarke

Web Systems Developer
Bradford College


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message