cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sudhi <su...@planet.net>
Subject Re: Executing Prepared Statement
Date Wed, 24 May 2000 21:11:44 GMT
> 
> try running it as you would from the sql command line - generally
> something like this:
> 
> call next-article()
> 
> if you can suggest an appropriate syntax, i'll be happy to add specific
> support for prepared statements in the sql taglib.
> 
Is it possible to implement it it in the same as java and JDBC ?
Like create a statement, and set the fields one by one.
(some thing like this)
        String sqlstmt = "insert into files (filename,title)
values(?,?)"
        PreparedStatement stmt = conn.prepareStatement(sqlstmt);
        stmt.setString(1,filename);
        stmt.setString(2,title);
........



~Sudhi

Mime
View raw message