I have one JSP page(a.jsp) and when I try to open this page it asks for username and password. I want to open this JSP page through a html page(b.html) with the help of hyperlink. One way is; If I hard coded the username and password in the hyperlink i.e. <a href="http://xyz.com:8080/rpt/a.jsp?USERNAME=admin&PASSWORD=admin"> Click here to check </a>. but this way is not secure.
Could someone please help me how can I open the JSP file without doing hardcoded the credential in hyperlink something like with the help of setting session attribute. Do let me know if any more clarification is needed.