This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
But when i add the following to web.xml <servlet-mapping> <servlet-name>HelloWorldServlet</servlet-name> <url-pattern>/HelloWorldServlet</url-pattern> </servlet-mapping> and give the url as http://localhost:8080/scwcd/HelloWorldServlet im able to execute the servlet
My question/doubt is it mandatory to give servlet mapping tag to execute a servlet ???
Let me add something that I missed in my previous reply. Specs don't make it mandatory to have a servlet-mapping tag. This may be because, in your web-app, you may not need even a single servlet. For example, if all you have is JSP pages without following MVC pattern, then you don't need a servlet-mapping tag.
Sorry, this doesn't answer your question. I have to install a servlet container yet. But I guess it's mandatory to have the servlet-mapping tag to execute a servlet.
Hi, I have the same problem with servlets. I am using Tomcat 5.0.25. I can start a jsp, but not a simple servlet. I have used the default directory ..\webapps\ROOT\WEB-INF\classes and I put the HelloServlet.java and HelloServlet.class. By calling: http://localhost:8080/servlet/HelloServlet, I receive the error: "The requested resource (/servlet/HelloServlet) is not available."
In the system properties I have a new variable CATALINA_HOME and I set it in the path. I added to the classpath the servlet-api.jar. I hope, somebody knows was is wrong.
Thank you in advance, Maria
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com