[2.0.2] Difference between play.mvc and play.api.mvc
525 views
Skip to first unread message
Mathias Buchholz
unread,
Jul 26, 2012, 10:48:54 AM7/26/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to play-fr...@googlegroups.com
Hello,
am still a beginner in using Play framework.
I have seen, where are some classes that similar named in the libraries "play.mvc" and "play.api.mvc"
Which library should i prefer on which topic?
e.g. the class Result play.mvc.Result and play.api.mvc.Result
In a Controller class all my static functions have a return play.mvc.Result... Or is it better using play.api.mvc.Result?
thank you
Mike
unread,
Jul 26, 2012, 12:18:52 PM7/26/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to play-fr...@googlegroups.com
I believe play.mvc is reserved for the Java API and play.api.mvc is the provided Scala API. Not sure what the technical differences are.
opensource21
unread,
Jul 28, 2012, 2:43:09 AM7/28/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to play-fr...@googlegroups.com
You should decide if you want write your application in java or scala. If you choose java don't use play.api.** (There are some exceptions in the scala-templates) if you choose scala don't use play.mvc.*. If you use this as a basic-rule you are on the safe site.
From the functionality: The scala part has often more functionality or provide a more elegant solution.
Niels
sas
unread,
Jul 28, 2012, 11:35:36 PM7/28/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to play-fr...@googlegroups.com
I wonder why play devs have chosen those namespaces... it would me more explicit play.java.mvc and play.scala.mvc...