Hmm, as I said this works beautifully #tag( Form "name='myform'" "action='$actionName'" "method='GET'" )
and if I remove these single quotes around $actionName it stops working. That makes me wonder why is $actionName treated differently than $tag.params.actionName. Any ideas? > I think if you're putting it in single quotes, it is evaluated literally, > not against the stack. What about > > #tag( Form "name='myform'" "action=$tag.params.actionName" "method='GET'" ) > > As I understand it, parameters supplied within the tag directive body are > always evaluated against the stack (which is different than how parameters > supplied with the #param directive work). You want to keep 'myform' and > 'GET' in single quotes, because they are literals and shouldn't be > evaluated. But if you want $tag.params.actionName to be evaluated, skip the > single quotes and it should be. > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Taavi > Tiirik > Sent: Tuesday, November 25, 2003 4:59 AM > To: [EMAIL PROTECTED] > Subject: [OS-webwork] velocity, variable in the tag parameter > > Hmm, this must be an easy one. Please help me to the right track with this. > > I cannot get this working: > #tag( Form "name='myform'" "action='$tag.params.actionName'" > "method='GET'" ) > > How should I write $tag.params.actionName in order to get it working. > > The following works just fine but how can it be done in one step? > #set( $actionName = $tag.params.actionName ) #tag( Form "name='myform'" > "action='$actionName'" "method='GET'" ) > > thanks, > taavi. > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork