Pass parameter between two JSPs

2

I have the final page.jsp and saida.jsp. In the final page.jsp I send the parameter like this:

<form action="saida.jsp">
        <input type="hidden" name="informal" value="${documento.stringInformais}">
        <button type="submit" value="Enviar">Enviar</button>
</form>

and from there I do not know how to get the parameter in saida.jsp

    
asked by anonymous 27.08.2014 / 01:30

1 answer

2

You can get the parameter on page saida.jsp through EL:

${param.informal}

Even within a jstl tag

<c:out value="${param.informal}" />

Or use scriptlets (which should be avoided):

<%= request.getParameter("informal") %>
    
27.08.2014 / 01:58