@Controller
public class LocationController
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
logger |
Constructor and Description |
---|
LocationController() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addLocation(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model model) |
java.lang.String |
editLocation(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model model,
int locid) |
java.lang.String |
handleRequest(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model model) |
java.lang.String |
saveMachineForm(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model model,
MachineForm machineForm,
org.springframework.validation.BindingResult result) |
@RequestMapping(value="/locations") public java.lang.String handleRequest(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model)
@RequestMapping(value="/locationEdit", method=GET) public java.lang.String addLocation(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model)
@RequestMapping(value="/locationEdit/{locid}", method=GET) public java.lang.String editLocation(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model, @PathVariable int locid)
@RequestMapping(value="/locationEdit", method=POST) public java.lang.String saveMachineForm(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model, @ModelAttribute(value="machineForm") @Validated MachineForm machineForm, org.springframework.validation.BindingResult result)