hi i am new towards development especially java i have created jsp page and when i run that jsp page i can perform the task that i need but i want it to run some thing like service that when i run my project it will run my jsp page too but do not show any thing means jsp display .
Because i am just inserting data in data and there is nothing to display. Actually i am keep on ping some host in my jsp page by calling method in class that do it and keep on doing it automatically after some time by using
"<meta http-equiv="refresh" content="5">
"
so it ping some host and insert its data in database
How would i do it like a service that it starts my desire work when i run project
Hopes for your Suggestions and please give some example to understand example code