Example usage for org.springframework.web.bind.support SessionStatus setComplete

List of usage examples for org.springframework.web.bind.support SessionStatus setComplete

Introduction

In this page you can find the example usage for org.springframework.web.bind.support SessionStatus setComplete.

Prototype

void setComplete();

Source Link

Document

Mark the current handler's session processing as complete, allowing for cleanup of session attributes.

Usage

From source file:egovframework.rte.tex.mbr.web.EgovMemberController.java

/**
 * ?  ? ??.//from  ww  w . j ava  2 s. co  m
 * @param memberVO ?
 * @param status ?
 * @return "redirect:/j_spring_security_logout"
 * @throws Exception
 */
@RequestMapping("/mbr/deleteMember.do")
public String deleteMember(MemberVO memberVO, SessionStatus status) throws Exception {
    memberService.deleteMember(memberVO);
    status.setComplete();
    return "redirect:/j_spring_security_logout";
}

From source file:com.work.petclinic.web.OwnerController.java

@RequestMapping(value = "/new", method = RequestMethod.POST)
public String processCreationForm(@Valid Owner owner, BindingResult result, SessionStatus status) {
    if (result.hasErrors()) {
        return "owners/ownerForm";
    } else {/*w w  w .  j  a  v a  2  s  . c  om*/
        this.clinicService.saveOwner(owner);
        status.setComplete();
        return "redirect:/owners/" + owner.getId();
    }
}

From source file:com.work.petclinic.web.OwnerController.java

@RequestMapping(value = "/{ownerId}/edit", method = RequestMethod.POST)
public String processUpdateOwner(@Valid Owner owner, BindingResult result, SessionStatus status) {
    if (result.hasErrors()) {
        return "owners/ownerForm";
    } else {//w w  w. j a  v  a  2  s  .c  o m
        this.clinicService.saveOwner(owner);
        status.setComplete();
        return "redirect:/owners/{ownerId}";
    }
}

From source file:fi.koku.kks.controller.ChildController.java

@ActionMapping(params = "action=toChildInfo")
public void toChildInfo(@ModelAttribute(value = "child") Person child, BindingResult bindingResult,
        ActionResponse response, SessionStatus sessionStatus) {
    LOG.debug("toChildInfo");
    response.setRenderParameter("action", "showChild");
    response.setRenderParameter("pic", child.getPic());
    sessionStatus.setComplete();
}

From source file:com.branded.holdings.qpc.web.OwnerController.java

@RequestMapping(value = "/owners/new", method = RequestMethod.POST)
public String processCreationForm(@Valid Owner owner, BindingResult result, SessionStatus status) {
    if (result.hasErrors()) {
        return "owners/createOrUpdateOwnerForm";
    } else {//from  www .  j  a v a2 s.c om
        this.clinicService.saveOwner(owner);
        status.setComplete();
        return "redirect:/owners/" + owner.getId();
    }
}

From source file:com.branded.holdings.qpc.web.OwnerController.java

@RequestMapping(value = "/owners/{ownerId}/edit", method = RequestMethod.PUT)
public String processUpdateOwnerForm(@Valid Owner owner, BindingResult result, SessionStatus status) {
    if (result.hasErrors()) {
        return "owners/createOrUpdateOwnerForm";
    } else {/*from   w  w  w .  j a  v a  2  s. c o  m*/
        this.clinicService.saveOwner(owner);
        status.setComplete();
        return "redirect:/owners/{ownerId}";
    }
}

From source file:com.pet.demo.web.OwnerController.java

@RequestMapping(value = "/owners/new", method = RequestMethod.POST)
public String processCreationForm(@Valid Owner owner, BindingResult result, SessionStatus status) {
    if (result.hasErrors()) {
        return "owners/createOrUpdateOwnerForm";
    } else {//www.  j  a v a  2s  .  c o m
        this.petDemoService.saveOwner(owner);
        status.setComplete();
        return "redirect:/owners/" + owner.getId();
    }
}

From source file:com.pet.demo.web.OwnerController.java

@RequestMapping(value = "/owners/{ownerId}/edit", method = RequestMethod.PUT)
public String processUpdateOwnerForm(@Valid Owner owner, BindingResult result, SessionStatus status) {
    if (result.hasErrors()) {
        return "owners/createOrUpdateOwnerForm";
    } else {//from w ww .j a v  a  2 s.  c  o m
        this.petDemoService.saveOwner(owner);
        status.setComplete();
        return "redirect:/owners/{ownerId}";
    }
}

From source file:com.rambird.miles.web.CatgController.java

@RequestMapping(value = "/categories/{catgid}/edit", method = RequestMethod.PUT)
public String processUpdateOwnerForm(@Valid Category category, BindingResult result, SessionStatus status) {
    if (result.hasErrors()) {
        return "categories/addOrUpdateCatg";
    } else {//w w  w .j  av a2  s. c  o  m
        this.rambirdService.saveCategory(category);
        ;
        status.setComplete();
        return "redirect:/categories/{catgid}";
    }
}

From source file:com.rambird.miles.web.OwnerController.java

@RequestMapping(value = "/owners/new", method = RequestMethod.POST)
public String processCreationForm(@Valid Owner owner, BindingResult result, SessionStatus status) {
    if (result.hasErrors()) {
        return "owners/createOrUpdateOwnerForm";
    } else {/*from   w ww.  java2  s . c  o m*/
        this.rambirdService.saveOwner(owner);
        status.setComplete();
        return "redirect:/owners/" + owner.getId();
    }
}