reset password
Author Message
ajeymalladi
Posts: 4
Posted 00:03 Feb 16, 2015 |

Hi Prof.

In file FileManagerController class copy1() method has following mapping.

 @RequestMapping(value = "/file/copy", params = "!copy")

When i looked copy.jsp file it does not has any parameter name !copy

Can you please help me to understand how !copy parameter is being passed to the controller.

Thanks

cysun
Posts: 2935
Posted 08:36 Feb 16, 2015 |

param="!copy" means if the request does not have a parameter "copy".

To copy a file a user has to first locate the destination folder. This step is handled by the copy1() controller method.

After the destination folder is located, the user performs the actual copy operation. The request for this step will have a "copy" parameter and is handled by the copy2() controller method.