Re: How to use dependent controllers

58 views
Skip to first unread message

eee

unread,
Jul 9, 2012, 10:14:04 AM7/9/12
to play-fr...@googlegroups.com
For 2.0 check the approach of zentask sample app.
The idea is to annotate the controllers with @Security.Authenticated(Secured.class)


El sábado, 7 de julio de 2012 18:05:17 UTC-3, kadams-alfresco escribió:
I have a Java controller called Login with a doLogin method. For every other controller, I have a dependency to call the doLogin method to get an authentication ticket prior to performing any other method calls. What is the best way to accomplish this?

I'm trying to build off of the Java tutorial, but it wont allow me to simply call another controller. Any hints/tips/tricks/or hey dumbass do this?

- Kyle

kadams-alfresco

unread,
Jul 9, 2012, 8:51:32 PM7/9/12
to play-fr...@googlegroups.com
Thanks! Hopefully this will save me from overusing DI with spring.
Reply all
Reply to author
Forward
0 new messages