Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Made a Java File.. Now what!?

Status
Not open for further replies.

jolo70

Programmer
Mar 21, 2002
4
US
hi.. Im new to JSP and I was wondering how do you use the servlet after you've created it or compiled it?

Where do you put it?

Do you have to configure your web.xml file?

Please help..

Thanks,
JoLo
 
You have asked a very open ended and ambiguous question. Where do I start. Its Friday I am already tired. You need to experiment some yourself.

So what have you done? Did you create a jsp page in an existing example application? Jsp pages go in the webapps/myapp/ directory. Or are you creating a servlet--the class file goes in the WEB-INF/classes directory. If it is a servlet then you need to restart server--then try to get to it using browser.

or

if you don't have a WEB-INF/web.xml file the web server will not let you have access to anything!

Good Luck, pfist
 
Also play with and look at the example servlets and jsp's that come with Tomcat. You will learn a lot that way.

Best Regards, pfist
 
My best advice is RTFM. Tomcat comes with alot of examples of how to structure your webapp directories, how to write an Ant build file and how to deploy your app. You just need to read them. You're willing to read the responses to your post, right, so read the manual [morning].
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top