You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Filippos Slavik <fs...@forthnet.gr> on 2001/11/06 00:26:24 UTC
Calling Action Programatically
Hello,
I'd need to call a concrete Action from within my code. I found that I can
achieve that by invoking something like that:
org.apache.turbine.modules.ActionLoader.getInstance().exec(data,"action_name");
It's working but I'm not sure if this is perfectly safe and/or if the above
statement will be valid in the upcoming version(s) of Turbine. I use this
technique mainly in situation when after an action has been performed I
need to decide to which action I have to pass prossesing for further
operation. For example I have a situation, where a visitor attempts to
request a "member's section" (the user might have stored the dynamicly
generated URL in his bookmarks) and the user is not currently logged-in, I
pass him through a login page and if the authorization process is
succesfull I need to pass him to the original requested action/template. Is
the above technique valid concerning the entire Turbine philosophy ?
Regards
Filippos Slavik
################################################################
Filippos Slavik
FORTHnet R&D, Heraklion, Greece
e-mail : fsla@forthnet.gr
phone : (+3) 081 391230
################################################################
"The software said 'runs on Win95 or better,' so I installed it
on Linux..."
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>