How to send innerhtml text of a tag in url on onclick event handler in JSP page and get this value in another JSP page? Here is my code
<a href="DocumentViewer.jsp">Hello</a>
I want to send Hello with URL. Help?
You should pass the value in URL on onclick event and get it using
request.getParameter()
in JSP page. Below is the example code
<a href="DocumentViewer.jsp?proces=something">Hello</a>
and get it in JSP like this.
String pro=request.getParameter("proces");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With