You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Thomas Zehetbauer <th...@hostmaster.org> on 2004/09/03 19:48:30 UTC
XSP Forms - Best Practice?
Hi,
what is the current recommended practice for having a XSP output a HTML
form showing the values of the last submission? This seems especially
complicated for <select>/<option> groups. Is there any library/block for
this yet?
Tom
--
T h o m a s Z e h e t b a u e r ( TZ251 )
PGP encrypted mail preferred - KeyID 96FFCB89
finger thomasz@hostmaster.org for key
The three Rs of Microsoft support: Retry, Reboot, Reinstall.
Re: XSP Forms - Best Practice?
Posted by Olivier Billard <ol...@laposte.net>.
Hi Tom,
For what you want to do, you could have a look to CForms, which is the best way to go.
But if you have to deal with XSP, you must get the values from the request object here [1], accessible from your XSP.
Then, you can use java loops to generate your form.
<xsp:logic>
for (int i=0 ; i<parameters.length ; i++) {
<input type="text"><xsp:attribute name="value"><xsp:expr>parameters[i]</xsp:expr></xsp:attribute></input>
}
</xsp:logic>
[1] http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/environment/Request.html
HTH,
--
Olivier Billard
Thomas Zehetbauer wrote:
> Hi,
>
> what is the current recommended practice for having a XSP output a HTML
> form showing the values of the last submission? This seems especially
> complicated for <select>/<option> groups. Is there any library/block for
> this yet?
>
> Tom
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org