You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Yan, Charlene" <Ch...@thomsonlearning.com> on 2003/06/25 19:45:27 UTC
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="charlene.yan@thomsonlearning.com"/>
<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: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: Parameter in a hidden field in xsp
Posted by JD Daniels <jd...@datatrio.com>.
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" <Ch...@thomsonlearning.com>
To: <co...@xml.apache.org>
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="charlene.yan@thomsonlearning.com"/>
> <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: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org