I'm using JSP & Struts2 for development.
When I login, I call an action, which inturn takes some time to load the data on the page.
While the data is getting loaded, I want to show a busy cursor and once the page is completely loaded, remove off that.
Also I'm using jQuery to a large extent. Is there a way to achieve this?
Based on your question, it sounds like you might get a better user experience by postponing the long-running action call until after your page has loaded.
To achieve that, have your JSP render a busy indicator of some sort, get the data from your action with an ajax call that runs on the page's onload
event, and finally place the content where you'd like it. I'm sure jQuery does all of this for you very easily.