Pass parameter between two Jsps

Asked

Viewed 1,055 times

2

I have the.jsp end page and output.jsp. On the.jsp end page 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 I should receive the parameter in saida.jsp

1 answer

2


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

${param.informal}

Even within a tag jstl

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

Or use scriptlets (which should be avoided):

<%= request.getParameter("informal") %>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.