You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by PEGASUS84 <pe...@hotmail.it> on 2009/03/13 16:04:26 UTC

send data

good evening;
does someone know how can I send data from a jsp page to an Action?
-- 
View this message in context: http://www.nabble.com/send-data-tp22498337p22498337.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: send data

Posted by elyes sallem <el...@gmail.com>.
Hello,
you can send them by the actionForm that u define



2009/3/13 PEGASUS84 <pe...@hotmail.it>

>
> good evening;
> does someone know how can I send data from a jsp page to an Action?
> --
> View this message in context:
> http://www.nabble.com/send-data-tp22498337p22498337.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Elyes.

Re: send data

Posted by PEGASUS84 <pe...@hotmail.it>.
thanks but i don't be able to realize this thing;






laes1 wrote:
> 
> i don't use struts 2.0 (i use struts 1.2)
> so with this version, u can get a text value or a password through the
> actionform
> u define a class which extends from actionform
> and u add the property u want (u generate for this properties a getter and
> setter method)
> and u get them whith a cast of the form , in the action
> 
> <form-class>  = (<form-class> ) form;
> 
> 
> 
> 
> 2009/3/13 PEGASUS84 <pe...@hotmail.it>
> 
>>
>> thanks but the data object isn't an input tag as <s:text> or <s:password>
>> but a tag <s:url>;
>> Can I get url in an action?
>> --
>> View this message in context:
>> http://www.nabble.com/send-data-tp22498337p22498771.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 
> 
> -- 
> Elyes.
> 
> 

-- 
View this message in context: http://www.nabble.com/send-data-tp22498337p22499078.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: send data

Posted by elyes sallem <el...@gmail.com>.
i don't use struts 2.0 (i use struts 1.2)
so with this version, u can get a text value or a password through the
actionform
u define a class which extends from actionform
and u add the property u want (u generate for this properties a getter and
setter method)
and u get them whith a cast of the form , in the action

<form-class> <object> = (<form-class> ) form;




2009/3/13 PEGASUS84 <pe...@hotmail.it>

>
> thanks but the data object isn't an input tag as <s:text> or <s:password>
> but a tag <s:url>;
> Can I get url in an action?
> --
> View this message in context:
> http://www.nabble.com/send-data-tp22498337p22498771.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Elyes.

Re: send data

Posted by PEGASUS84 <pe...@hotmail.it>.
thanks but the data object isn't an input tag as <s:text> or <s:password> 
but a tag <s:url>;
Can I get url in an action?
-- 
View this message in context: http://www.nabble.com/send-data-tp22498337p22498771.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: send data

Posted by yogita sharma <yo...@gmail.com>.
In your action class, define the variable with the same name you are
defining your element in jsp page, and put setter-getter for the same, you
should be able to use the data.
Actually in struts 2, they have eliminated action forms and combined it with
action class.

On Fri, Mar 13, 2009 at 8:34 PM, PEGASUS84 <pe...@hotmail.it> wrote:

>
> good evening;
> does someone know how can I send data from a jsp page to an Action?
> --
> View this message in context:
> http://www.nabble.com/send-data-tp22498337p22498337.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
take care,
bye