You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by beyaNet Consultancy <be...@ntlworld.com> on 2004/01/18 12:08:48 UTC
Pipeline parameters
Hi,
I want to pass some parameters from a form into an action and am doing
so via the following procedure, but with no joy. could you please tell
where i am going wrong:?
1. form
<form action="userDetails" method="post">
<table>
<tr>
<td align="right">User:</td>
<td align="left"><input type="text" name="user" /></td>
</tr>
2. pipeline
<map:match pattern="testpage">
<map:act type="get-detail2">
<map:parameter name="user" value="{1}" />
3. Action
String userName = param.getParameter("user");
If I hardcode the value into the form then it works fine:
<map:parameter name="user" value="x1234" />
regards
Andrew
Re: Pipeline parameters
Posted by Antonio Gallardo <ag...@agsoftware.dnsalias.com>.
Try:
<map:parameter name="user" value="{request-param:user}"/>
Best Regards,
Antonio Gallardo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org