On 10/1/07, Dudee <[EMAIL PROTECTED]> wrote:
> I have created my own form on a velocity page and I have written a struts
> action but I don't know how to get the values from the form into the struts
> action. I have also created a action bean with the same name as the the
> action file.
>
> So, how should I do to get the values from the form in to the struts action
> file? And what method in the struts action is executed when the action is 
> called.
> As it is now, only my constructor is called so I have added a call there to
> the save method.
>
> Is it possible to use something like "request.getAttribute(name)" for
> example to get the value of the name from the form?

We don't do that anywhere in Roller, but it's not a bad idea. Struts 2
will map request parameters to fields on your action. You'll have to
read up on Struts 2 to figure out how to do it.

- Dave

Reply via email to