hi edgar,

Wilson Edgar wrote:

> hi guys,
> i've been programming in java for a while but i'm completly new to servlets,
> sorry c'os i'm sure this has been asked before, but i cant seem to find the
> apropriate resource :>(.
> i've created this directory called  testarea, inside i have the WEB-INF with
> the classes directory and the web.xml file, all this has been placed under
> webapps inside tomcat...
> tomcat it's running fine and the the application compiled the only problem
> is when i type:
> http://127.0.0.1:8080/testarea/simpleservlet
> i just get the source not available error. i've checked evrything (according
> to my knowledge) but i can't find the error. this is how my web.xml looks
> like
>
> <web-app>
>   <display-name>SimpleServlet</display-name>
>   <session-timeout>30</session-timeout>
>   <servlet>
>     <servlet-name>SimpleServlet</servlet-name>
>     <servlet-class>.testarea.SimpleServlet</servlet-class>


.....................^  see below


>     <load-on-startup>1</load-on-startup>
>     <init-param>
>       <param-name>name</param-name>
>       <param-value>value</param-value>
>     </init-param>
>   </servlet>
> </web-app>
>


if your servlet is in a package testarea:

<servlet-class>testarea.SimpleServlet</servlet-class>


else:
<servlet-class>SimpleServlet</servlet-class>


should work.

markus

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to