addXML(model, "result", result, "watch");
return path;
}
@RequestMapping(value="/delete.do")
public String deleteWatch(Model model) throws Exception {
User user = loginInfoProvider.get().currentUser();
Data result = new Data();
if(user != null) {
try {
Data param = getParam();
param.add(0, "userIdx", user.getId());
watchService.deleteWatch(param);
result.add(0, "result", "OK");
param = null;
} catch (Exception e) {
e.printStackTrace();