Thank you very much for your quick response.
It seems I mixed up the servlet-name and servlet-class tags.
Next monday I'll correct and test it.
To check my understanding;
- servlet section; servlet-name is a alias for a servlet, which is the
first mapping
- servlet-mapping section; here we have the second fase of mapping,
where the servlet alias is translated to a certain URL.
In my case, I simply want the fully qualified classname to be mapped to
a servlet alias. Without using the servlet-mapping section, the url in
my example should then be http://localhost:8080/imsapps/gsServer.
(imsapps = context, gsServer = servlet-name)
Is that correct ?
Regards,
Nico
Paolo Barolat-Romana wrote:
> Nico-
>
> Just as a side note, the servlet name does not have to be the fully
> qualified class name. The servlet name is used internally by tomcat and
> can be whatever you like. Note that the servlet name in the servlet tag
> and the servlet name in the servlet mapping tag are what connect the two
> tags.
>
> You are missing one element in you web.xml file <servlet-class>
>
> <servlet>
> <servlet-name>Whatever</servlet-name>
> <servlet-class><fully qualified class name></servlet-class>
> </servlet>
> <servlet-mapping>
> <servlet-name>Whatever</servlet-name>
> <url-pattern>/myservlet</url-pattern>
> </servlet-mapping>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]