Re: how jsp form text field values are copied to action class instance fields

2013-10-11 Thread Umesh Awasthi
This is being done with help of interceptors, struts2 provides a set of
interceptors to do some work for you and transferring form values to
actions properties is one of them.

Have a look at
http://struts.apache.org/release/2.3.x/docs/parameters-interceptor.html and
see how this interceptor will work.

This is responsible for transferring data, also there will be type
convertors in place which will convert String values being sent form form
to desired data types.

Have a look at
http://struts.apache.org/release/2.3.x/docs/struts-defaultxml.html
to see what all interceptors are configured.

See also http://struts.apache.org/release/2.3.x/docs/interceptors.html to
get more understanding about them.


On Fri, Oct 11, 2013 at 12:53 PM, Srimuralidharan S <
srimuralidhara...@dhyanit.com> wrote:

> Hi,
> I have a form with two text fields  rollnumber and name and also a
> submit button. My action class also contain two private instance fields
> rollnumber and name. I wondered how text field values are copied to the
> instance fields of action class. Please help me in understanding the
> process and the mechanism of passing values in struts2
>
> --
> Regards,
> Srimuralidharan.S
>
>
> --**--**-
> To unsubscribe, e-mail: 
> user-unsubscribe@struts.**apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


-- 
With Regards
Umesh Awasthi
http://www.travellingrants.com/


how jsp form text field values are copied to action class instance fields

2013-10-11 Thread Srimuralidharan S

Hi,
I have a form with two text fields  rollnumber and name and also a 
submit button. My action class also contain two private instance fields 
rollnumber and name. I wondered how text field values are copied to the 
instance fields of action class. Please help me in understanding the 
process and the mechanism of passing values in struts2


--
Regards,
Srimuralidharan.S


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