How to compile .war file?

Well Im a newbie in Java,

I have a problem in accessing a sample of cart-shopping (by JAVA.SUN) with .war files which can be download in Servlet tutorial.

Can any one in the forum explain more detail about this files and how it works...

the sentence of this part in the servlet tutorial makes me confuse,

"When the bookstore application is accessed, Tomcat 4.0 and 3.2 automatically unpack bookstore.war into the directory TOMCAT_HOME/webapps/bookstore and add the application's context to the server startup file. The application context contains the context root, document root, what level of debugging information to provide, and whether Tomcat should monitor a servlet class for changes and reload it."

(http://java.sun.com/docs/books/tutorial/servlets/servletrunner/tomcat-start.html#directoryLayout)

I have install the tomcat 3.2 in my machine and it seems not to work when I accessed webapp/bookstore......

regards,

raj aryan maholtra

[1019 byte] By [paichow] at [2007-9-26 3:36:30]
# 1
Simply place the war file into the webapps directory and THEN start tomcat. Look at your directories after starting tomcat and you will find that tomcat has created all the directory structures underneath the webapps directory, starting with the directory webapps/bookstore
rflash at 2007-6-29 12:08:04 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Hi, you can use ClassPath to indicate where the .War file is locatedand then restart tomcat.hope it works.peter_z
peter_z at 2007-6-29 12:08:04 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...