Web Development
Member Avatar

Is it possible to get the current URL in my JSP page.

Say i open a site "http://abc.com/page1.jsp";
I want to display it in page1.jsp the total url as "http://abc.com/page1.jsp"; …

jsp
Web Development
Member Avatar

Is it possible to get the current URL in my JSP page.

Say i open a site "http://abc.com/page1.jsp";
I want to display it in page1.jsp the total url as "http://abc.com/page1.jsp"; …

Topic by kaushik259106

I think it is work <%=(String)request.getRequestURL()%>

jsp