We are using three divs in our application.
Header
Middle portion
Footer
Url of the application : http://localhost:8080/APPNAME/index.jsp
Header contains three buttons. If we click on the buttons we will change the middle portion div content using the following code:
$('div#middleportion').load('login.jsp');
$('div#middleportion').load('register.jsp');
$('div#middleportion').load('home.jsp');
Successfully we are loading content. My problem is if we click on login button we are able to display login content in middle portion div, but I need to change the URL as follows:
http://localhost:8080/APPNAME/login.jsp
How to achieve this?
Please help me.Help would be appreciated.