Raffaele:

I don't know the solution of your problems of accessing the public
get-methods but I have an answer to your very first question how to cycle
through two arrays simultaneously.

Because of the lack of the FOR loop you have to use another construct. Try
it like this:
   #foreach ( $i in [1..10] )
     user [ $i ]
   #end

The loop definitely works like this. But I don't have a clue whether the
access to this user[] array works, too.

best regards
Matthias Wimmer



-----Original Message-----
From: Raffaele Ragni [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 17, 2002 11:16 AM
To: Jetspeed Users List
Subject: Parameters between vm and portlets


I've posted another one fo this, but seems no one read itor mayby i've wrote
it bad, i'll post for the last time.

I've seen in the sources that you can pass users from a portlet to a vm
file, like that:
Criteria criteria = new Criteria();
User [] users   = JetspeedSecurity.getUsers (criteria);
context.put("users", users);

and in the vm i can do like this: $!user.Name etc, accessing records of the
user 'array'.

now i want to to a similar thing, but with my types, or at least i can build
two arrays, but i dont know how to go through them simultaneously in vm.

so, its impossible to build 'records arrays' and i have to use multiple
arrays (and if so how i can use them simultaneously? i know only the foreach
thingy in vm, how works a normal for?) or there is a way? (in theory should
be, if turbine uses this way).

i'm doing a file listing on multiple dirs, and for each file i want to
separate the path from the filename, doing it in vm file..and from that the
link goes to another portlet that shows the file.

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

Reply via email to