the <xsp:attribute> on the <xsp-request:get-parameter> is not possible; it's
translated to java code and first executed when generation starts, i.e. when
the <xsp-request:get-parameter> has already been translated.

but you should be able to use following:

<xsp-request:get-parameter><name>paraname<xsp:expr>mycount</xsp:expr></name>
</xsp-request:get-parameter>

> -----Ursprungliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Auftrag von [EMAIL PROTECTED]
> Gesendet: Freitag, 7. Marz 2003 09:38
> An: [EMAIL PROTECTED]
> Betreff: <xsp:attribute> for <xsp-request:get-parameter>
>
>
> I try to get each text field (paranameX) where X are the text fields
> from the previous page :
>
> ...
>        <esql:query>
>               INSERT INTO Process_Parameters
>                       (pp_process, pp_pmid, pp_name)
>               VALUES
>                       ...,
>               <'xsp-request:get-parameter><xsp:attribute
> name="name">paraname<xsp:expr>mycount</xsp:expr>
>               </xsp:attribute></xsp-request:get-parameter>')
> ...
>   <xsp:logic>
>       mycount = mycount + 1;
>   </xsp:logic>
> ...
>
>
> This line :
>               <'xsp-request:get-parameter><xsp:attribute
> name="name">paraname<xsp:expr>mycount</xsp:expr>
>               </xsp:attribute></xsp-request:get-parameter>')
>
> Gives me the following error :
> org.apache.cocoon.ProcessingException: Exception in
> ServerPagesGenerator.generate(): java.lang.NullPointerException
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to