This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JSP and the fly likes how can i put my web application  in a war file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "how can i put my web application  in a war file" Watch "how can i put my web application  in a war file" New topic
Author

how can i put my web application in a war file

samdeep aarzoo
Ranch Hand

Joined: Jun 09, 2005
Posts: 160
hi
suppose i have one web application . i want to put it whole
in a war file than how can i do it.
please help!
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

From the command line:
CD to the root of your application.
Type:
jar cvf MyApplication.war *


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
samdeep aarzoo
Ranch Hand

Joined: Jun 09, 2005
Posts: 160
it works

thanks ben
 
Don't get me started about those stupid light bulbs.
 
subject: how can i put my web application in a war file