cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Billard <olivier.billard.coc...@laposte.net>
Subject Re: XSP Forms - Best Practice?
Date Mon, 06 Sep 2004 13:39:09 GMT
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&lt;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


Mime
View raw message