LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-11-2014, 04:02 PM   #1
Reprovo
Member
 
Registered: Jul 2013
Posts: 37

Rep: Reputation: Disabled
reference to a folder I can't find (apache tomcat)


hi.
Not sure If this Is the right forum to post this but I'm a bit confused about some tomcat servlet examples I Installed.

The examples are In /usr/share/tomcat7-examples/examples/servlets.

There's an index.html and other html servlet files In the servlets directory.What I don't understand Is the href that executes the servlet In Index.html points to /servlet/someservlet.

Where Is this servlet directory ? from my little knowledge , I would expect It to be inside the servlets directory but It's not.

Any help would be appreciated.
 
Old 11-12-2014, 06:33 AM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,307
Blog Entries: 2

Rep: Reputation: Disabled
A tutorial on deploying servlets

Quote:
By default, a servlet application is located at the path <Tomcat-installation-directory>/webapps/ROOT and the class file would reside in <Tomcat-installation-directory>/webapps/ROOT/WEB-INF/classes.

If you have a fully qualified class name of com.myorg.MyServlet, then this servlet class must be located in WEB-INF/classes/com/myorg/MyServlet.class.
 
Old 11-12-2014, 10:04 AM   #3
Reprovo
Member
 
Registered: Jul 2013
Posts: 37

Original Poster
Rep: Reputation: Disabled
Thanks! I found the class files In the /usr/share/tomcat7-examples/examples/WEB-INF directory.
I still don't get how servlet/someservlet maps to the WEB-INF classes directory.What Is servlet , a symlink ? Is there any way I can see what servlet Is ?

Last edited by Reprovo; 11-12-2014 at 10:35 AM.
 
Old 11-12-2014, 02:23 PM   #4
Reprovo
Member
 
Registered: Jul 2013
Posts: 37

Original Poster
Rep: Reputation: Disabled
After a little googling , this article about the InvokerServlet clears things up.

http://www.avajava.com/tutorials/les...t-mapping.html
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Having a secure folder on Tomcat pmorin Linux - Server 3 09-26-2011 06:15 AM
Session replication using apache+mod_jk+tomcat(5.5.28-veriosn of tomcat) sreejithp Linux - Server 1 12-24-2010 07:46 AM
Can't find Apache Folder NightSky Slackware 7 07-21-2009 07:43 PM
apache-tomcat and jakarta-tomcat shifter Programming 1 07-28-2007 11:36 PM


All times are GMT -5. The time now is 08:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration