Sure:

http://jakarta.apache.org/turbine/turbine-2.3/howto/index.html

The one you're probably looking for is the Action Events howto.  Short but
sweet.

Good luck,

DAvid

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday May 7, 2004 12:24 PM
To: Turbine Users List
Subject: RE: Uploading list of items


Thank you David... nice tip!
Do you know where I could find one of those howto's explaining how to 
implement the action class??






"David Demner" <[EMAIL PROTECTED]> 
07-05-2004 13:47
Por favor, responda a
"Turbine Users List" <[EMAIL PROTECTED]>


Para
"'Turbine Users List'" <[EMAIL PROTECTED]>
cc

Asunto
RE: Uploading list of items






Hi Carlos,

Do you know the size beforehand (like prompting the user for the number of
links and then showing this number of boxes)?

If so, this is quite easy using a foreach loop.  Something like:


$count = $data.Parameters.CountUserEnteredInLastStep
#foreach (entry in [1..$count])
                 <!-- show the 2 boxes here, maybe with names url$i and 
desc$i -->
                 URL: <input type="text" size="12" name="url$i" value="" 
/>
                 Desc: <input type="text" size="12" name="desc$i" value="" 
/>
#end


You'd have a form that would send the data to an action and process the 
data
there (there are howtos on this).

If you want to add a new field each time the user starts typing in one
field, I'm not sure how you'd do it.

Good luck,

DAvid

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday May 7, 2004 10:11 AM
To: [EMAIL PROTECTED]
Subject: Uploading list of items


Hi, I'm newbie with turbine and need to solve a problem.
I'm building a .vm, wich needs to ask the user for input a list of links, 
each one with a URL an a description (2 fields for each link). Furthermore 

the list needs to have a variable size, since the user could upload 1 or 
more links.

What is the best approach, using turbine, to implement this???

I've some experience doing this with struts, but it don't apply now...

Thank you very much.

Carlos.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to