Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Steps  RSS feed

 
Graham Thorpe
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First u can create as a war Directory structure .

Like

Hello
|
|
WEB-INF
|
|---web.xml
classes
|
|-----HelloServlet.java
|-----HelloServlet.class


then u compile ur java file using javac command
And enter ur servlet entries at web.xml.
later u can create as a WAR using ---jar -cvf Hello.war Hello
Finally u can login admin console.
LeftHandSide u can see the Applications--->installNewApplication -->choose ur war file and define context root name like /Hello .
Then u can apply next until finish .
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!