You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by "Diethelm Guallar, Gonzalo" <Go...@sonda.com> on 2001/04/16 20:53:16 UTC
Did a template call setPage()?
I need the following functionality:
* If a Velocity template issued a setPage()
as part of the action in a form, use that
page as the target to show results.
* If the template did not issue a setPage(),
use a template based on some sort of config
mechanism (say, an XML file). Notice the
template used in this case may be different
for different forms, and it may be changed
during run-time.
Is there any way to inquire whether a template
called setPage(), and to ask what the parameter
for that call was?
Thanks,
--
Gonzalo A. Diethelm
gonzalo.diethelm@sonda.com
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: Did a template call setPage()?
Posted by Jon Stevens <jo...@latchkey.com>.
on 4/16/01 11:53 AM, "Diethelm Guallar, Gonzalo"
<Go...@sonda.com> wrote:
> I need the following functionality:
>
> * If a Velocity template issued a setPage()
> as part of the action in a form, use that
> page as the target to show results.
This should already work or be available.
> * If the template did not issue a setPage(),
> use a template based on some sort of config
> mechanism (say, an XML file). Notice the
> template used in this case may be different
> for different forms, and it may be changed
> during run-time.
>
> Is there any way to inquire whether a template
> called setPage(), and to ask what the parameter
> for that call was?
You are welcome to extend and implement whatever you want. :-)
-jon
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org