Make a Controller method non-action in Play framework 1.2

We create action method for Controller by using public static void

Whether this method is defined in routes file or not, it will be regarded as an action by Play.


And there’s another problem: passing parameters by calling action method directly will be impossible

The above uploading function will not work, Because the file parameter in basicUpload function is always null (But the file parameter in upload function is not null)


To solve this problem, we need to change the access modifier from public to private

Now the file parameter in basicUpload function will be valid