Hello, i am new to
jsp and i need to get the URL of the parent page in my JSP code since i need to check it to connect to the right DB. Right now the code is working fine since we call it from only one html page since the DB path is Hard coded but there is a problem when we want to call it from another webpage.
HTML page
containt
containt
....
Link to JSP
/HTML
In my code i then connect to the right DB to display Data in my page
Anyone could help me ?
Edit : i tried some method like getRequestURL() but it always return the
servlet page (i think that's the right name not too sure though)
Thank you