Re: Accessing nested properties

2005-06-21 Thread rajiv verma
Try adding the "type" attribute  to the logic:iterate tag.
I always do something like this:

and it works for me.
-Rajiv


On 6/21/05, Fredrik Boström <[EMAIL PROTECTED]> wrote:
> No, the foo_array is an array of Foo. Each Foo object holds a Bar object
> wich holds a test field (see sample code). I'm trying to access the
> test-field's value from within the iteration over Foo objects.
> 
> Regards,
>   Fredrik
> 
> 
> Laurie Harper wrote:
> > Change property="bar.test" to property="test"; assuming foos_array is an
> > array of Bar then, within the iterate tag body, 'foos' is bound to an
> > instance of Bar on each iteration.
> >
> > L.
> >
> > Fredrik Bostrom wrote:
> >
> >> Hi list,
> >>
> >> How do I access a nested property in an iterated object?
> >>
> >> I've got two classes like this (heavily simplified and stripped):
> >>
> >> class Foo {
> >>   Bar bar = new Bar();
> >> }
> >>
> >> class Bar {
> >>   int test = 10; //any value
> >> }
> >>
> >> In my jsp-page, I'm iterating an array of foo-objects and I want to
> >> access the test-field in the Bar-class from within the iteration. How
> >> do I do that?
> >>
> >> This is what I'd like to do:
> >>
> >> 
> >>   
> >>  //do something
> >>   
> >> 
> >>
> >> But this doesn't work... Any ideas?
> >>
> >>
> >> Regards,
> >>   Fredrik Boström
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> --
> Fredrik Boström
> +358 44 306 1324
> [EMAIL PROTECTED]
> 
> -
> 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]



Forward path entry in Struts-config

2005-07-14 Thread rajiv verma
Hi,
  I want to place my JSPs under the WEB-INF directory[login directory].
How ths struts-config entries should look in this case.
If I try to add the following forward--entry:


But, this by default looks everything under the context[root].
Any solution to this? I know there is forward pattern, I was trying to
make use of it, but does not seem to work.
Thanks,
Rajiv

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Action based validations

2005-09-08 Thread rajiv verma
I am using struts 1.2 and my client side validations using based on action 
rather than form are not working? Is there a bug in the 1.2 release. I have 
worked previously with 1.1 and it used to work just fine.
In the validation file,
instead of 
 


I could use



Any clues??

-Rajiv