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.
i made a Servlet class ServletHome.java which work only transfer the control to Vij.jsp. Vij.jsp in turn call a another jsp file Indus.jsp. this jsp transfer the control to another servlet class ServletOne.java which perform
some business logic on some java classes then dispaly the result on same jsp file Indus.jsp from where i called ServletOne.java
i am configuring web.xml.but due to some mistake in web.xml, i am founding exception.
I really should have a handy cut and paste to say this since it is a common beginner error for people moving from desktop applications to a container hosted environment.
ALL classes in servlets should be in named packages and the class files stored accordingly.
What you have there is a class in the "default" package - a JVM will look for it in the "current" directory. You have no control over the current directory therefore the class is never loaded.
Yes, except that I think an incorrect value has been used for the servlet class, so I don't think servlet is actually the package name for the class file - instead, I think the poster placed the url pattern into this field by mistake. I think the poster still doesn't understand the need for packages, or doesn't understand what they are.
Seetharaman Venkatasamy wrote:I do suggest you to *google* about web application structure and make a *Hello World* Servlet
That's good advice. There's good 'getting started' help in the ServletsFaq on the Ranch.
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