Hi,

I want to modify top.vm in the distributed templates
so that it delegates to topA.vm or topB.vm depending
on the value of a form variable.

I envision top.vm looking like this:

#set ($myvar = $data.getParameter( "mykey" ))

#if ($myvar == "A")
#parse(topA.vm)
#elseif ($myvar == "B")
#parse(topB.vm)
#end

I would like to set "mykey" in a form.  But I'm having
trouble accessing it from the RunData object. I've
tried everything I can think of:

$data.getRequest.getParameter("mykey")
$data.getParameter("mykey")
etc.  

It seems as though that top.vm is too high in the
chain for $data to have that information.  Can anyone
shed some light on this?

thanks,
Mike


__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

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

Reply via email to