> Dear all iam new for java,i have one dought that is how to set
> path to
> tomcat and how to deploy.
>
> regards,
> chinni.
I see that somebody already told you how to set a Windows path.
Deployment is different for jsp versus servlets. Servlets get
compiled manually *before* you deploy, and jsp gets compiled at
runtime during the first invocation of the jsp.
Deployment is typically done by creating a web archive (a "war"
file with .war extension) using the jar utility. Invoke the jar
utility at the command line in the root of the project. Assuming
you use jar correctly, it will create the .war file in the current
directory, which you need to copy to the Tomcat webapps folder.
Tomcat, assuming that it's running, then will deploy (explode the
.war file) automatically and you can test your url.
This is the short story. There are many details missing because
they are details that you need to discover as you go. Just
remember that when you create the .war file it will explode/deploy
under Tomcat\webapps to create folders and files that look
*exactly* like what you have in your development path.
Good luck, it's a steep learning curve but Tomcat is actually
easier to use than some other containers. It's a good choice.