Thank you for your help. So far, All jsp examples provided with tomcat works well. My own html pages works as well.But my own jsp pages doesn't work. I have problem of compilation. Could you help me to configure the classpath in order to compile jsp pages.
I have still compilation problem. I hope there is at least someone in this forum to resolve my problem.
Here my problem:
javax.servlet.ServletException: L'enrobeur (wrapper) ne peut trouver la classe servlet org.apache.jsp.toto_jsp ou une classe dont elle d�pend org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) java.lang.Thread.run(Unknown Source)
Now my *.jsp works fine.But I don't why? Before it worked, there was in the web.xml the following lines related with my jsp page toto.jsp : <servlet> <servlet-name>org.apache.jsp.toto_jsp</servlet-name> <servlet-class>org.apache.jsp.toto_jsp</servlet-class> </servlet>
So What the use of the web.xml ? Because I nothing put in it
Joined: Mar 22, 2005
Servlet mappings are for servlets, not JSPs. Even though JSPs may be implemented as servlets, they are not mapped in web.xml. web.xml has many other functions, one if which is to indicate to Tomcat that the directory it's in is a web application, not just a directory containing static resources. If you read the servlet/JSP specification you'll become aware of all the things that can be configured using web.xml.
Joined: Jan 21, 2004
Thanks you for your answer. But I have a question for you:
You said: "web.xml has many other functions, one if which is to indicate to Tomcat that the directory it's in is a web application, not just a directory containing static resources."
If you have very simple JSP pages only (no tag libraries, no error pages, no servlets, no security etc.) you can do w/o a web.xml. But any of those more advanced features will require some kind of declaration in web.xml