Thanks for your reply. I tried using <%@ import %> tag and still the result is same.
Also after using the import tag and updating the timestamp of the main_template.jsp page, I had a check at the generate servlet class file and it contains the modified HTML data. But the same is not been reflected in the pages.
I tried clearing off the cache, cookies and other things. But none of it worked, it looks like caching issue in server side. Any suggestions to overcome this is well appreciated