On 22/12/2002 9:22 PM, "Eigen Technology Pty Ltd"
<[EMAIL PROTECTED]> wrote:
> Scott,
>
> I was a Perl/PHP user and now switching to Turbine.
>
> If I have more than one Form elements passed on from one page to the other,
> how does this:
>
> $data.Parameters.HTMLElementName
>
> method resolve it? (there is this split command in Perl/PHP)
>
> In a .vm file I coded:
>
> #set($test=data.Parameters.HTMLElementName)
> $test
>
> but the resultant Page on my broswer gave me an Error. What went wrong?
>
> cheers
> michael
I didn't mean to use the literal String "HTMLElementName" - you should
substitute this with the name attribute you assigned to the html input
element in your form (<input name="myInputElementName" ...>).
"$data" is the Turbine RunDataService (configured in your
TurbineResources.properties file).
"Parameters" is resolved to the getParameters() method in RunData using
reflection.
"myInputElementName" is resolved via reflection to get("myInputElementName")
(well I think it is, if I am wrong just expand it yourself or if the type is
important do getInt("myInputElementName") or whatever).
See the "Parameter and Cookie Parsing" section of:
http://jakarta.apache.org/turbine/turbine-2/services/rundata-service.html
Cheers,
Scott
--
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au
.Mac Chat/AIM: seade at mac dot com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>