Last active
January 12, 2023 12:32
-
-
Save kauanmocelin/58113077d8e72e8fa4ce426f5b0d025a to your computer and use it in GitHub Desktop.
[Redirecionar actions passando parâmetros direto pro form] O form relacionado a action EncaminharProcesso irá receber automaticamente os parâmetros definidos no ActionRedirect #struts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DistribuirProtocoloForm distribuirProtocoloForm = (DistribuirProtocoloForm) form; | |
distribuirProtocoloForm.setAcaoRetorno(ACAO_VOLTAR_ESPECIFICO); | |
setUcsRetorno(distribuirProtocoloForm, "retornoDistribuirProtocolo", request, response); | |
ActionRedirect redirect = new ActionRedirect(mapping.findForward("ucsEncaminharProcesso")); | |
redirect.addParameter("parecerConclusaoEdit", distribuirProtocoloForm.getComplemento()); | |
Arrays.stream(distribuirProtocoloForm.getListaCod()).forEach(numeroProtocolo -> redirect.addParameter("enclote", numeroProtocolo)); | |
redirect.setRedirect(false); | |
return redirect; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment