I have an application, that register a user. I get the user through various pages, and everyone takes some data from the user, that info is stored in the session, and only in the last page, the data is stored in the DDBB.
When the first page is fulfilled by the user, he clicks the “next” button:
<div class='btn_sig_pag_uno'>
<!-- <fieldset id="barra">-->
<g:actionSubmit action="registro2"
title="${message(code:'infoPersonal.siguiente') }"
name="siguiente" class="siguiente"
value="${message(code: 'infoPersonal.siguiente', default: 'Siguiente')}"
style="cursor:pointer" />
<!-- </fieldset>-->
</div>
The in the controller, in the action “registro2” the data introduced by the user is validated, and “registro2.gsp” is presented… but the url presented is the same than in the first page. I would like it to be controller/action…and don’t know why the url doesn’t change.
Any help? Thank you!
What you need to do is to create an action to display
registro2.gspand then do a redirect after having executeregistro2like this:That way the URL will change.