*/
public ActionForward deleteSelected(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws Exception {
if (log.isDebugEnabled())
log.debug("Delete selected files.");
FileSystemForm fileSystemForm = (FileSystemForm) form;
try {
VFSResource res = checkLaunchSession(request, response, fileSystemForm);
ActionForward fwd = checkAccess(mapping, fileSystemForm, request);
if (fwd != null) {
return fwd;
}
fwd = checkMount(res, mapping, fileSystemForm, request);
if (fwd != null) {
return fwd;
}
buildModel(res, fileSystemForm, request);
Object[] uris = fileSystemForm.getSelectedFileNames();
if (uris == null || uris.length < 1) {
ActionMessages msgs = getErrors(request);
msgs.add(Globals.ERROR_KEY, new ActionMessage("vfs.delete.select.error"));
saveErrors(request, msgs);
return mapping.getInputForward();