Thank you very much! The syntax is like xsl. But it would take me longer to find out
how if you had not helped me. Appreciate it!
Charlene
<input type="hidden" name="from">
<xsp:attribute name="value">
<xsp-request:get-parameter
xmlns:xsp-request="http://apache.org/xsp/request/2.0" name="Foo"/>
</xsp:attribute>
</input>
-----Original Message-----
From: JD Daniels [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 1:50 PM
To: [EMAIL PROTECTED]
Subject: Re: Parameter in a hidden field in xsp
Try:
<input type="hidden" name="from">
<xsp:attribute name="value">
<xsp-request:get-parameter
xmlns:xsp-request="http://apache.org/xsp/request/2.0" name="Foo"/>
</xsp:attribute/>
JD
----- Original Message -----
From: "Yan, Charlene" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 10:45 AM
Subject: Parameter in a hidden field in xsp
> Hi,
>
> I would like to have the value of a parameter "Foo" put in a hidden filed.
The parameter is passed over from previous page. Obviously <input
type="hidden" name="from" value="<xsp-request:get-parameter
xmlns:xsp-request="http://apache.org/xsp/request/2.0" name="Foo"/>"/> is not
working. Can anyone help me out here please?
>
> Thanks.
>
> Charlene
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xsp:page language="java"
> xmlns:xsp="http://apache.org/xsp"
> xmlns:xsp-request="http://apache.org/xsp/request/2.0">
> <page>
>
> <title>Send EMail</title>
>
> <p style="color:red;">
> <xsp-request:get-attribute name="org.apache.cocoon.acting.Sendmail"
default=""/>
> <xsp-request:get-parameter
xmlns:xsp-request="http://apache.org/xsp/request/2.0" name="Foo"/>
> </p>
>
> <table cellpadding="2" cellspacing="2" border="0">
> <tbody>
> <form method="POST" enctype="multipart/form-data">
>
> <input type="hidden" name="smtphost" value="localhost"/>
>
> <input type="hidden" name="from"
value="[EMAIL PROTECTED]"/>
> <input type="hidden" name="from"
value="<xsp-request:get-parameter
xmlns:xsp-request="http://apache.org/xsp/request/2.0" name="Foo"/>"/>
> </form>
> </tbody>
> </table>
>
> </page>
> </xsp:page>
>
> ---------------------------------------------------------------------
> 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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]