I am trying to implement the login functionality for a webapp. Using jquery is a javascript version and is a non-javascript version. The javascript version is working fine, but I have a problem with non-JS version:
Currently when the user clicks on "login", then I reload the same page with a parameter Due to which a login form is created (which means that I do not have a clear login view.)
In the case of any input errors, I use ViewController on that view. I want to go to where the user initiated the login process, I can not use a redirect for that, especially because the rejected value will be lost then what I really need to do is redirect to the view-name on which The login form was opened.
Is this a great way to do this or is it a better idea to use a different login template?
Thanks in advance for any input!
This is not necessarily the spring (I think that you If you use classical Hope it helps. RedirectView Or
"redirect: //" ), you only have to pass the parameter in the same view (
ModelAndView , or whatever you use) , It indicates whether you should show the entry form or not.
#springFormInput , and accordingly use the
#springShowErrors tag, you will see error and value, will be shown inside Entry form because you have passed the variable to complete it in the controller.
Comments
Post a Comment