Class ShowPageController

java.lang.Object
jp.ecuacion.splib.web.controller.SplibBaseController
jp.ecuacion.splib.web.controller.ShowPageController

@Controller @Scope("prototype") @RequestMapping({"/public/show","/public/adminShow","/account/show","/admin/show","/ecuacion/public/show"}) public class ShowPageController extends SplibBaseController
Shows the page designated by id parameter of the url.

To ensure the authentication and security, needed validations are done. To secure the page which only logged-in users can see, this feature shows the page with data-show-page-login-state tag like [@code data-show-page-login-state="public"} and shows the page with specified loginState (public / account / admin)

Basically this feature is assumed to use with GET access.
But in some cases(*) this feature is used with POST access, so the method is also open to POST.

(*) One of the cases is that in session timeout state login button or other post access button is pressed.
In that case the accessed page was blocked because of the session timeout and request is redirected the url with this feature, and if the original access is POST, the redirected access is also POST therefore the post access comes to this feature.

  • Constructor Details

    • ShowPageController

      public ShowPageController()
  • Method Details

    • page

      @RequestMapping(value="page", method={POST,GET}) public String page(org.springframework.ui.Model model, @RequestParam("id") String page) throws IOException
      Shows the page designated by id parameter of the url.
      Parameters:
      model - model
      page - page
      Returns:
      page
      Throws:
      IOException - IOException