Created
October 21, 2014 18:20
-
-
Save jschappet/43aed3f5fd75bc270028 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RequestMapping( value = "update/{hostId}", method = RequestMethod.POST ) | |
@ResponseBody | |
public String updateValues(@PathVariable("hostId") String hostId, | |
@RequestParam("name") String attrName, | |
@RequestParam("value") String attrValue ) { | |
Host host = ictssysadminDaoService.getHostService().findById( Integer.parseInt(hostId )); | |
if (attrName.equals("description")) { | |
host.setDescription(attrValue); | |
} | |
ictssysadminDaoService.getHostService().save(host); | |
return ""; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
public class Refl {
}