What error message is that? Is it the same you give us below?
This example keep jsp file page1.jsp in root folder when we move this file in any other folder it geives error.
Do you mean that the error below is shown if you move the home.jsp from the root folder? The reason may be that home.jsp is including the template file that is mentioned in the error message. And since the include is defined as a relative based on the root location after you move it somewhere else the template file can not be found anymore. The solution would be for example to fix the include to point to right location after the move.
When I put the home.jsp file in any folder it is given the error
I do not see where you say what you want and what have you done. So what is it that you do want to accomplish? And why? And what have you done?
below are details what I have done and what I want and wht is the error.