cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Washeim <esa...@canuck.com>
Subject Re: form post
Date Sat, 01 Jul 2000 14:46:19 GMT
on 1/7/00 3:56 pm, Torsten Curdt at tcurdt@dff.st wrote:

> How do I process a form post with Cocoon!?
> 
> Cocoon generated the following form:
> 
> <form action="result.xml" method="post">
> <input name="submitName" type="text">
> <input type="submit">
> </form>
> 
> How can access the "submitName" in the result.xml
> page now? Or do I have to use "methode=get" and
> use <xsl:param>?
> --
> Torsten
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 

request.getParameter() will return name / value pairs regardless of the
method. So, give submit a name and value and you can parse them out . . .
<input type="submit" name="formName" value="submitForm"/>

...

-- 
Mark (Poetaster) Washeim

'On the linen wrappings of certain mummified remains
found near the Etrurian coast are invaluable writings
that await translation.

Quem colorem habet sapientia?'

Evan S. Connell

 



Mime
View raw message