RE: Problem from defining JavaBean as an attribute inside ActionForm

2008-07-15 Thread Chandramouli P
> To: user@struts.apache.org> From: [EMAIL PROTECTED]> Subject: Re: Problem > from defining JavaBean as an attribute inside ActionForm> Date: Thu, 3 Jul > 2008 14:56:09 -0400> > Oh, and another thought: are you initializing > ActionForm's empAddress > field so

Re: Problem from defining JavaBean as an attribute inside ActionForm

2008-07-03 Thread Lukasz Lenart
> From day one, as far as I know. What? 4 years of blindness? What a mess, I have to go back to basis, bheee. :P Kind regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

Re: Problem from defining JavaBean as an attribute inside ActionForm

2008-07-03 Thread Laurie Harper
Lukasz Lenart wrote: For the record, Struts 1 definitely supports dot-notation access to sub-fields. That's not the problem here. Upsss... ;-) Could you clarify my doubts, from which version? From day one, as far as I know. L. ---

Re: Problem from defining JavaBean as an attribute inside ActionForm

2008-07-03 Thread Lukasz Lenart
> For the record, Struts 1 definitely supports dot-notation access to > sub-fields. That's not the problem here. Upsss... ;-) Could you clarify my doubts, from which version? Regards -- Lukasz http://www.lenart.org.pl/ - To un

Re: Problem from defining JavaBean as an attribute inside ActionForm

2008-07-03 Thread Laurie Harper
Oh, and another thought: are you initializing ActionForm's empAddress field somewhere? It may cause problems if it is null when Struts tries to set its properties. Struts 2 can automatically create instances of beans in that situation, but Struts 1 doesn't. L. Laurie Harper wrote: What you ha

Re: Problem from defining JavaBean as an attribute inside ActionForm

2008-07-03 Thread Laurie Harper
Lukasz Lenart wrote: We are using Struts 1.2.9 and writing the JSP page as below: As I remember, Struts 1 don't support such evaluation, you can use For the record, Struts 1 definitely supports dot-notation access to sub-fields. That's not the problem here. L.

Re: Problem from defining JavaBean as an attribute inside ActionForm

2008-07-03 Thread Laurie Harper
What you have below all looks fine; it should work as you expected. What does your form bean definition look like? Is the form bean correctly referenced by the action mapping the form is submitted to? Post the relevant bits of configuration and the full stack trace; maybe that will allow someon

RE: Problem from defining JavaBean as an attribute inside ActionForm

2008-07-03 Thread Chandramouli P
+0200> From: [EMAIL PROTECTED]> To: > user@struts.apache.org> Subject: Re: Problem from defining JavaBean as an > attribute inside ActionForm> > Hi> > > We are using Struts 1.2.9 and writing > the JSP page as below:> >> > > > > > > >

Re: Problem from defining JavaBean as an attribute inside ActionForm

2008-07-02 Thread Lukasz Lenart
Hi > We are using Struts 1.2.9 and writing the JSP page as below: > > > > > > > As I remember, Struts 1 don't support such evaluation, you can use Nested Tags [1] , example are here [2] [1] http://struts.apache.org/1.2.9/userGuide/struts-nested.html [2] http://www.mail-

Problem from defining JavaBean as an attribute inside ActionForm

2008-07-02 Thread Chandramouli P
Hi, I have the below scenario: I have a java bean as below: public class Address { private String city; private String state; and public getters/setters for the above attributes; } and I have the ActionForm as below: import Address; public class EmpForm extends ActionForm