• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to a war file in TOMCAT

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
basically i am new to tomcat.... , and i am learning JSP.
so, could any one tell me how to run a JSP file which is calling a servlet class file ...
and i got some advice that we should make a war file and keep it in web-apps
folder.. and then call that file in the URL like http://localhost:8080/filename but its not working..
pls guide me ...
thank u in advance
 
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Santosh,
Its not a compulsion that you need to create a war for running the servlets and jsps on Tomcat. you can just put the class files as they are and can get them running .
First you need to create your servlets then had to update the WEB-INF/web.xml with the servlet entries.
In this WEB-INF folder only create a 'lib and classes inside lib' folder and add your classes to it.
You should be able to access them.No need to go for war file,you can use war file , once you gain some expertise


Raj
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you want some examples you can find some simple ones here:
http://simple.souther.us

There is a good tutorial on the Tomcat site:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/index.html

It should help you get started.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic