cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <ba...@webslingerZ.com>
Subject Re: Problem with xsp e esql
Date Tue, 12 Dec 2000 21:37:44 GMT
On Mon, 11 Dec 2000, Marco Spinetti wrote:

> <esql:connection>
>   <esql:pool>elenco</esql:pool>
>   <esql:execute-query>
>    <esql:query><xsp:expr>query</xsp:expr></esql:query>
>    <esql:results>
>     <!-- <header>Elenco IOL</header> -->
>     <esql:row-results>
>     <ResultItem>
>     <ResultElement>
>     <ResultName name="numero"/>
>     <ResultValue><Text><xsp:expr>prefisso</xsp:expr>-<xsp:expr>numero</xsp:expr></Text></ResultValue>
>     </ResultElement>

<xsp:logic>

>     dbCognome = <esql:get-string column="1"/>;
>     dbNome = <esql:get-string column="2"/>;
>     dbProv = <esql:get-string column="6"/>;
>     String provEstesa = (String) hashProv1.get(dbProv);
>     if (provEstesa != null)
>      dbProv = provEstesa;
>     if ((dbNome != null) &amp;&amp; (dbNome.equals("") == false))
>     {
>      dbNome = wmlUtil.wmlNormalize(dbNome);
>      dbCognome = wmlUtil.wmlNormalize(dbCognome);

<xsp:content>

>      <ResultElement>
>      <ResultName name="nome"/>
>
>     * <ResultValue><Text><xsp:expr>dbNome</xsp:expr></Text></ResultValue>
>
>     </ResultElement>

</xsp:content>

>
>     }
>     else
>     {
>      dbCognome = wmlUtil.wmlNormalize(dbCognome);
>     }

</xsp:logic>

>     <ResultElement>
>     <ResultName name="cognome"/>
>
> * <ResultValue><Text><xsp:expr>dbCognome</xsp:expr></Text></ResultValue>
>
> </ResultElement>
> .....................
>
> The problem is that when I execute the * line inside the tag Text I do
> not obtain not at all while if instead of <xsp:expr>dbNome</xsp:expr>
> (or <xsp:expr>dbCognome</xsp:expr> ) I put the esql:instruction
> <esql:get-string column="2"/> I obtain the value inside the Text tag.
> Why? Where is my error? I could put the Esql instruction but I would
> like to know why it does not work. Thanks Regards Marco

you should really read up on the xsp language.

- donald


Mime
View raw message