LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-06-2012, 07:47 PM   #1
Whatif
Member
 
Registered: Nov 2010
Distribution: VectorLinux
Posts: 87

Rep: Reputation: 0
Servlets


Hello,

I installed Centos 6.3 as a workstation. Both JDK and Tomcat 6 are installed. Where should I place *.class files? What is the url I should use to access the servlet?

I have tried to search online but couldn't find a specific solution which added to the confusion from the book I'm reading.

Thanks in advance,
Mike
 
Old 12-10-2012, 04:36 PM   #2
cheesus
Member
 
Registered: Jan 2005
Location: Munich, Germany
Distribution: SuSE
Posts: 186

Rep: Reputation: 25
Hello, the easiest (and correct) way to do this, is:
add a "web.xml" file, package it into a ".war" archive using the "jar" utility and copy the ".war" to the tomcats "webapps"/"deploy" directory.
http://www.avajava.com/tutorials/les...r-command.html
Maybe Eclipse has a wizard to help you with that ?
Cheers, Tom.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Java and Servlets. Do I need J2EE? Mega Man X Programming 5 03-28-2006 01:27 PM
Tomcat can't find th servlets! xpucto Linux - Software 1 03-23-2006 12:46 PM
servlets/jsp/j2ee linux_ub Linux - Software 1 09-29-2004 02:17 PM
Tomcat + Servlets configuration nightmare lethalinjection Programming 2 11-04-2003 08:18 PM
Servlets executing a C program. webee Programming 1 02-04-2003 05:19 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration