You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by Stan Pinte <st...@wanadoo.be> on 2001/08/09 17:43:13 UTC

screen and actions chaining...

hello,

some general questions...

1: can I invoke a screen without having a file called MyScreenName.vm, just 
having a class {$modules}.screens.MyScreenName.java ?

how do I invoke it?

2: can I chain actions? In the body of the doPerform() method, can I 
redirect toward another action?

thanks a lot,

Stan.


Stanislas Pinte
Computer Consultant

Sales Director
Alto Software

20 Pl St Jacques
B-4000 Liège
Tel+Fax: +32 -(0)4 221 35 08
GSM: +32 -(0)478 57 61 80
web: http://www.altosw.be
email: stan@altosw.be

Re: screen and actions chaining...

Posted by John McNally <jm...@collab.net>.
Stan Pinte wrote:
> 
> hello,
> 
> some general questions...
> 
> 1: can I invoke a screen without having a file called MyScreenName.vm, just
> having a class {$modules}.screens.MyScreenName.java ?
> 
> how do I invoke it?

yes, use "screen" instead of "template"

http://host/app/servlet/app/screen/MyScreenName

screen = java class
template = velocity/jsp/webmacro template


> 
> 2: can I chain actions? In the body of the doPerform() method, can I
> redirect toward another action?


you can use ActionLoader.exec method within the doPerform method to
include/chain actions.

> 
> thanks a lot,
> 
> Stan.
> 
> Stanislas Pinte
> Computer Consultant
> 
> Sales Director
> Alto Software
> 
> 20 Pl St Jacques
> B-4000 Liège
> Tel+Fax: +32 -(0)4 221 35 08
> GSM: +32 -(0)478 57 61 80
> web: http://www.altosw.be
> email: stan@altosw.be

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