}
@RequestMapping(value="/list.do")
public String delteWatch(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());
result = watchService.listWatch(param);
param = null;
} catch (Exception e) {
e.printStackTrace();
result = new Data();
result.add(0, "result", "NO");
}
} else {
result = new Data();
result.add(0, "result", "NO");
}
addXML(model, "result", result, "watch");
return path;