https://issues.apache.org/bugzilla/show_bug.cgi?id=46557
Summary: Calling a Java Servlet from a JSP Page - Tomcat server Product: Tomcat 6 Version: 6.0.18 Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: Documentation AssignedTo: dev@tomcat.apache.org ReportedBy: mikerob...@cs.com Please provide in your documentation an example of a jsp page calling a java servlet given the following directory structure: webapps HelloWorldExample hello.jsp is directly under HelloWorldExample Under HelloWorldExample WEB-INF classes Under classes jservlets HelloWorld servlet is in jservlets folder ******* hello.jsp should have the following code with a submit button: <FORM METHOD="Post" ACTION="servlet/jservlets.HelloWorld"> ********* Specifically, how would you code the web.xml file under WEB-INF. <servlet> <servlet-name>HelloWorld</servlet-name> <servlet-class>jservlets.HelloWorld</servlet-class> </servlet> <servlet-mapping> <servlet-name>HelloWorld</servlet-name> <url-pattern>/servlet/HelloWorld</url-pattern> </servlet-mapping> How do you code the url-pattern so as not to get HTTP Status 404 The requested resource (/HelloWorldExample/servlet/jservlets.HelloWorld) is not available. There is no question that this error message is a direct result of the Tomcat security features. You should also have an easy way to run Tomcat on your PC without having to deal with all the security issues. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org