Pat,

I always missed your reply.
I already get around this by doing things another way to get the same result.

This weekend I try to write something that shows what I've found and post
it to JIRA, maybe it's something strange....

hans




On Mon, Nov 04, 2002 at 09:24:33AM -0800, Patrick Lightbody wrote:
> Hans,
> I've had this email flagged for a few days now and I just don't have time to
> check it out right now. Please open a case in JIRA and we'll get to it
> eventually. Thanks!
> 
> -Pat
> 
> ----- Original Message -----
> From: "Hans Steinraht" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, November 02, 2002 9:27 AM
> Subject: [OS-webwork] using action with param inside iterator?
> 
> 
> > hi,
> >
> > maybe someone can help me out with this.
> >
> > I use an action in a jsp that give me schoolClasses (Vector) for a school.
> > Next I iterate through the schoolClasses to print out the classNames for
> the
> > classes of this school.
> >
> > Then I want to send the userId for the first user in a schoolClass to
> > another action called "GetModulesForUser" (a schoolClass has a getter
> > getUsers()) that returns a Vector with users.
> >
> > Here the jsp-code:
> > <webwork:action name="'GetClassesForSchool'" id="classes" />
> > <webwork:iterator value="@classes/schoolClasses">
> >   <webwork:property value="className"/>
> >
> >   <webwork:action name="'GetModulesForUser'" id="modules" >
> >     <webwork:param name="'userId'"
> >                    value="users/firstElement/userId"/>
> >   </webwork:action>
> > </webwork:iterator>
> >
> >
> > The strange thing happening now is that in the GetModulesForUser-action I
> > see that the userId is set in setUserId(String id), but then
> > in doExecute() the value 0.
> >
> > Here is the debug output:
> > DEBUG [GetModulesForUser]: setUserId(String v): 3
> > DEBUG [GetModulesForUser]: Action executing..
> > DEBUG [GetModulesForUser]: entering execute()
> > DEBUG [GetModulesForUser]: userId: 0
> >
> >
> > Even more strange is that when I hardcode the value for a userId in the
> > param tag the value is set and does not change in doExecute:
> > Like this:
> > <webwork:action name="'watnou.modules.GetModulesForUser'" id="modules" >
> >     <webwork:param name="'userId'"
> >                    value="'999'"/>
> >   </webwork:action>
> >
> > This output:
> > DEBUG [GetModulesForUser]: setUserId(String v): 999
> > DEBUG [GetModulesForUser]: Action executing..
> > DEBUG [GetModulesForUser]: entering execute()
> > DEBUG [GetModulesForUser]: userId: 999
> >
> >
> > I really don't know what I'm missing, maybe someone can put me on the
> right track?
> >
> > I'm using webwork-1.2 on Tomcat-4.03.
> > The operating system is Debian Linux
> >
> > thanks,
> > Hans
> >
> >
> >
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by: See the NEW Palm
> > Tungsten T handheld. Power & Color in a compact size!
> > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
> > _______________________________________________
> > Opensymphony-webwork mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: ApacheCon, November 18-21 in
> Las Vegas (supported by COMDEX), the only Apache event to be
> fully supported by the ASF. http://www.apachecon.com
> _______________________________________________
> Opensymphony-webwork mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork


-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to