I want to read parameter passed by one JSP to another using HTTP POST method.
Following are my two JSP files.
One.jsp
<body>
<form action="Two.jsp" method="post">
    <input type="text" value="test value" name="txtOne">
    <input type="submit" value="Submit">
</form>
</body>
Two.jsp
<body>
    <% response.getWriter().println(request.getParameter("txtOne")); %>
</body>
I can access the parameter in Two.jsp file using scriplet.
I want to avoid scriplet, so I am looking for JavaScript or jQuery solution.
So far I have searched and found JavaScript solution which only reads parameters sent using GET method(query string only).
Any suggestion will be appreciated.
Thanks in advance.
Solution: I was able to get the value using JSTL:
${param.txtOne}
 
     
     
     
     
    