Pass a parameter from one jsp to another using form.action
- by Ntz
I have an ID that I need in the next jsp once the user click a button. I am trying to do the following:
FirstJSP.jsp:
function getSecond() {
var frm = document.getElementById("frm");
frm.action = "**second.jsp?id=myId;"**
frm.submit();
}
...
form id="frm"
.....
input type="button" value="Next"…