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