|
Como estou usando o Sun ONE Studio, o mapping foi
automaticamente criado. Rodando de dentro do studio, a coisa funciona. Quando
exporto (.war) para o diret�rio do Tomcat n�o funciona.
Veja o web.xml:
<web-app> <servlet> <servlet-name>HelloWorld</servlet-name> <servlet-class>coreservlets.HelloWorld</servlet-class> </servlet> <servlet-mapping> <servlet-name>HelloWorld</servlet-name> <url-pattern>/servlet/HelloWorld</url-pattern> </servlet-mapping> <session-config> <session-timeout> 30 </session-timeout> </session-config> <welcome-file-list> <welcome-file> index.jsp </welcome-file> <welcome-file> index.html </welcome-file> <welcome-file> index.htm </welcome-file> </welcome-file-list> </web-app>
|
