cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arnaud Bienvenu <arnaud.bienv...@generasound.com>
Subject esql:query + esql:parameter bug
Date Thu, 19 Jul 2001 13:20:34 GMT
If I write, for example :
<esql:query>
 select * from space where person like <esql:parameter type="string">Alex</esql:parameter>
 ...
(I known I don't need the esql:parameter tags here, but see below...)

Then I get an error :
Error compiling index_xsp: Line 303, column 37: ')' expected.

Actually, the generated code is :
try {
  _esql_query.prepared_statement.setString(1,
     this.characters("Alex"););
}

which is obviously incorrect. The generated code gets more broken if you use
something like
<esql:parameter><request:get-parameter name="Alex"/></esql:parameter>

I think this is a big problem, and if some developer manage to fix it, he
would be a real man (or woman)...

-- 
Arnaud Bienvenu
http://www.generasound.com/

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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


Mime
View raw message