You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by raoul cridlig <rc...@yahoo.fr> on 2003/08/04 16:08:34 UTC

Force action linked to vm xhen do a setScreen

Hi all,

I execute some code in an action associated with
a velocity vm (page.vm), to redirect screen :

data.setScreen("newpage.vm")

But action associated with this vm (newpage.java)
is not performed before dispaying screen (quite
normal, it's a screen and not a page).
How can i force its action to be executed?

Thanx

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

Re: Force action linked to vm xhen do a setScreen

Posted by "Henning P. Schmiedehausen" <hp...@intermeta.de>.
=?iso-8859-1?q?raoul=20cridlig?= <rc...@yahoo.fr> writes:

>Hi all,

>I execute some code in an action associated with
>a velocity vm (page.vm), to redirect screen :

>data.setScreen("newpage.vm")

>But action associated with this vm (newpage.java)
>is not performed before dispaying screen (quite
>normal, it's a screen and not a page).
>How can i force its action to be executed?

No action is associated with a screen. You have a screen
class associated with a template (if you put in you screen package
and extend VelocityScreen/VelocitySecureScreen).

Actions are selected in a request with the action parameter. But there
is no direct association between an Action and a Screen and/or
Template.

	Regards
		Henning

-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
hps@intermeta.de        +49 9131 50 654 0   http://www.intermeta.de/

Java, perl, Solaris, Linux, xSP Consulting, Web Services 
freelance consultant -- Jakarta Turbine Development  -- hero for hire

"You are being far too rational for this discussion."  
       --- Scott Robert Ladd in <3F...@coyotegulch.com>

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Force action linked to vm xhen do a setScreen

Posted by "Henning P. Schmiedehausen" <hp...@intermeta.de>.
=?iso-8859-1?q?raoul=20cridlig?= <rc...@yahoo.fr> writes:

>Hi all,

>I execute some code in an action associated with
>a velocity vm (page.vm), to redirect screen :

>data.setScreen("newpage.vm")

>But action associated with this vm (newpage.java)
>is not performed before dispaying screen (quite
>normal, it's a screen and not a page).
>How can i force its action to be executed?

No action is associated with a screen. You have a screen
class associated with a template (if you put in you screen package
and extend VelocityScreen/VelocitySecureScreen).

Actions are selected in a request with the action parameter. But there
is no direct association between an Action and a Screen and/or
Template.

	Regards
		Henning

-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
hps@intermeta.de        +49 9131 50 654 0   http://www.intermeta.de/

Java, perl, Solaris, Linux, xSP Consulting, Web Services 
freelance consultant -- Jakarta Turbine Development  -- hero for hire

"You are being far too rational for this discussion."  
       --- Scott Robert Ladd in <3F...@coyotegulch.com>