I'm guessing your POs in User are null. Line 15 in TestAction should
tell you what.
Nils-H
On Tue, Nov 11, 2008 at 12:52 PM, aum strut [EMAIL PROTECTED] wrote:
Hi all,
I am using Model Driven approach for transfering my form data to the bean
object.i have a form(JSP Page) where i have
Yes thats true..
but may be i am wrong i am assuming that i am trying to set my PO classes in
the USer class
and for this user class i am using MOdel Driven Approach in my action
class..
if i am doing wrong here can any body point me where's the error in the
approach
On Tue, Nov 11, 2008 at 5:54
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
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
You can't expose two different beans with one getModel() method, if
that's what you're asking. You can, however, return a simple 'wrapper'
bean from getModel() which has a getter/setter pair for each of your
target beans.
Either approach gives you a way to address the two beans independently,
Thaks laurie
this was exactly i was looking for...
i will try this way and it seems to be a good way .
Thanks for the help
On Thu, Oct 9, 2008 at 1:32 PM, Laurie Harper [EMAIL PROTECTED] wrote:
You can't expose two different beans with one getModel() method, if that's
what you're asking. You
Hi All,
i tried to follow the the way suggested by Laurie i followed the below
mentioned practice.
1) I have two beans which i want to fill at the same time when the user hit
the registration button after filling the form.
2) in my action calss i am using the model driven approach to fill the
The error is complaining that you have no result defined for the result
named input. That probably means that the Action is encountering a
validation error or the like, causing it to return input.
On Thu, Oct 9, 2008 at 1:21 PM, aum strut [EMAIL PROTECTED] wrote:
Hi All,
i tried to follow
thats true but the probelm is when i am trying to return my custom bean from
the getModel()
method..
and i am unable to find out the exact cause why it is occuring there
On Thu, Oct 9, 2008 at 11:25 PM, Jim Kiley [EMAIL PROTECTED] wrote:
The error is complaining that you have no result defined
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
--- On Wed, 10/8/08, 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
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
Hi All,
Sorry if i am asking a very basic question.
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
--- 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
14 matches
Mail list logo