Class ShowPageController
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.
-
Field Summary
Fields inherited from class SplibBaseController
request -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class SplibBaseController
initBinder
-
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 byidparameter of the url.- Parameters:
model- modelpage- page- Returns:
- page
- Throws:
IOException- IOException
-