cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Seifert" <sseif...@pro-vision.de>
Subject AW: esql:query + esql:parameter bug
Date Thu, 19 Jul 2001 13:41:19 GMT
Try:

<esql:parameter
type="string"><xsp:expr>"Alex"</xsp:expr></esql:parameter>

or

<esql:parameter type="string"><xsp-request:get-parameter
name="Alex"/></esql:parameter>

This should work.

Stefan

> -----Urspr√ľngliche Nachricht-----
> Von: Arnaud Bienvenu [mailto:arnaud.bienvenu@generasound.com]
> Gesendet: Donnerstag, 19. Juli 2001 15:21
> An: cocoon-users@xml.apache.org
> Betreff: esql:query + esql:parameter bug
> 
> 
> 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