You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ches_nutsy <ch...@yahoo.com> on 2004/02/21 10:29:23 UTC

a question on viewing servlets

hi, i would like to ask something about the servlets, i have followed all the tomcat's intructions diligently, and i am able to compile them correctly, my problem is that I'm not alble to view the servlets, why is this happenning? I have saved the class files under C:\tomcat\jakarta-tomcat-5.0.12\webapps\ROOT\WEB-INF\classes and it compiled ok, but when i tried to access them, through http://localhost/servlet/HelloServlet nothing happens! help me, please.... 


---------------------------------
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.

Re: a question on viewing servlets

Posted by QM <qm...@brandxdev.net>.
On Mon, Feb 23, 2004 at 02:28:30AM -0800, ches_nutsy wrote:
: Yes.. um but i dont know anthing about xml, could you pleas please tell me how to do your saying?? i dont know how to configure any xml code... please... thanks.
: do i just have to write the directory where i save my servlets??

You may want to start here:

	http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/deployment.html

There's even a link to a sample web.xml.

For a more in-depth look, the full servlet 2.4 spec is available at:

	http://jcp.org/aboutJava/communityprocess/final/jsr154/index.htm

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: a question on viewing servlets

Posted by ches_nutsy <ch...@yahoo.com>.
Yes.. um but i dont know anthing about xml, could you pleas please tell me how to do your saying?? i dont know how to configure any xml code... please... thanks.
do i just have to write the directory where i save my servlets??

:
ches_nutsy wrote:

>hi, i would like to ask something about the servlets, i have followed all the tomcat's intructions diligently, and i am able to compile them correctly, my problem is that I'm not alble to view the servlets, why is this happenning? I have saved the class files under C:\tomcat\jakarta-tomcat-5.0.12\webapps\ROOT\WEB-INF\classes and it compiled ok, but when i tried to access them, through http://localhost/servlet/HelloServlet nothing happens! help me, please.... 
> 
>

Add your servlet and a servlet-mapping to your WEB-INF/web.xml

Antonio Fiol


> ATTACHMENT part 2 application/x-pkcs7-signature name=smime.p7s


---------------------------------
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.

Re: a question on viewing servlets

Posted by Antonio Fiol Bonnín <fi...@terra.es>.
ches_nutsy wrote:

>hi, i would like to ask something about the servlets, i have followed all the tomcat's intructions diligently, and i am able to compile them correctly, my problem is that I'm not alble to view the servlets, why is this happenning? I have saved the class files under C:\tomcat\jakarta-tomcat-5.0.12\webapps\ROOT\WEB-INF\classes and it compiled ok, but when i tried to access them, through http://localhost/servlet/HelloServlet nothing happens! help me, please.... 
>  
>

Add your servlet and a servlet-mapping to your WEB-INF/web.xml

Antonio Fiol

Re: a question on viewing servlets

Posted by Eric VERGNAUD <er...@jlynx.com>.
le 21/02/04 10:29, ches_nutsy à ches_nutsy@yahoo.com a écrit :

> hi, i would like to ask something about the servlets, i have followed all the
> tomcat's intructions diligently, and i am able to compile them correctly, my
> problem is that I'm not alble to view the servlets, why is this happenning? I
> have saved the class files under
> C:\tomcat\jakarta-tomcat-5.0.12\webapps\ROOT\WEB-INF\classes and it compiled
> ok, but when i tried to access them, through
> http://localhost/servlet/HelloServlet nothing happens! help me, please....
> 

Also your servlet folder should be at the same level as ROOT, not inside it.
Your webapps folder should look like the following:

balancer
jsp-examples
servlets-examples
tomcat-docs
ROOT
YOURSERVLET

Eric
-------------------------------
Eric VERGNAUD - JLynx Software
Cutting-edge technologies and
services for software companies
web: http://www.jlynx.com
-------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org