i even made getter and setter method for one of my beans namely Person

but when i am using these getter /setter method in the action calss for the
beans i am getting exception while the GetModel()

i mean the model driven approach is working fine..

On Thu, Oct 9, 2008 at 1:16 PM, aum strut <[EMAIL PROTECTED]> wrote:

>  Yes Dave , There is a sigle form(Page) for this with different sections
> in it for registration.i only want that the data from this single page
> should go to different (2 in my case) beans depends upon the fields i have
> defined in the respective beans.
>
>
> i tied this and is working fine but i want that i should seperate the
> getter and setter from my action
>
> i am using model driven approach and it is filling one beans accurately but
> i can not fill the second beans in the same getModel() .
>
> any other approach so that i can fill thm at the same time once my action
> get called .
>
>   On Thu, Oct 9, 2008 at 3:46 AM, Laurie Harper <[EMAIL PROTECTED]>wrote:
>
>> Just do what Dave outlined in his previous reply. You need getter/setters
>> in your action for each bean ([gs]etBean1(), [gs]etBean2() to correspond
>> with Dave's JSP sample code) and everything should work. Have you tried it?
>>
>> L.
>>
>>
>> aum strut wrote:
>>
>>> the issue is i have a registration from in the UI  which have two
>>> different
>>> section in a single page.
>>>
>>> 1) User login Information
>>> 2)Address Information
>>>
>>> i want that these two sections should get populated in two different Bean
>>> by
>>> the interceptor
>>> that mean User login fields get Pouplated in the UserLogin Beans while
>>> the
>>> Address section should  get populated in the Address Bean when my
>>> Registration Action get called once user will hit the Register Button.
>>>
>>>
>>> Thanks
>>> -aum
>>>
>>>
>>> On Tue, Oct 7, 2008 at 10:59 PM, Dave Newton <[EMAIL PROTECTED]>
>>> wrote:
>>>
>>> --- On Tue, 10/7/08, aum strut wrote:
>>>>
>>>>> i need to transfer data from the user registration page to
>>>>> the java beans to be used for inserting values in the data base.
>>>>> i have created two seperate beans for this 1) for storing user
>>>>> address field and second is for storing user login information.
>>>>>
>>>>> i want that when user cllick on the REgister button these
>>>>> two Beans get filled with the respective  values from the UI.
>>>>> i have named the corresponding fields in the beans with respect
>>>>> to the fields name in the UI.
>>>>>
>>>> What, precisely, is the issue?
>>>>
>>>> If you have a form containing:
>>>>
>>>> <s:textfield name="bean1.aField"/>
>>>> <s:textfield name="bean2.anotherField"/>
>>>>
>>>> each bean will contain whatever was entered in the form.
>>>>
>>>> Dave
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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