aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes servlet mapping Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "servlet mapping" Watch "servlet mapping" New topic
Author

servlet mapping

Arvind Chavar
Ranch Hand

Joined: May 16, 2001
Posts: 53
In the Manning book for SCWCD cert, authors say that the servlet mapping is not mandatory.If no servlet mapping is provided then they say that teh servlet could be accessed as
http://localhost:8080/APP_DIR/servlet/SERVLET_NAME
But Tomcat gives an error saying that it cannot find the resource.
Any ideas??
Thanks,
Arvind
Surendra Chauhan
Greenhorn

Joined: Jan 24, 2002
Posts: 10
Until now the invoker was enabled by default, but after 4.1.12 Tomcat the invoker is diabled by default.
Invoker servlet lets the Tomcat run the application servlet run without first making changes to /WEB-INF/web.xml file.
The class file for the servlet is dropped to the folder WEB-INF/classes and use http://host/servlet/servletname
To invoke the invoker servlet, uncomment the following lines in $install_dir/conf/web.xml (c:/Program files/Apache Group/Tomcat 4.1/conf/web.xml

<servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern</servlet/*<url-pattern>
</servlet-mapping>


Surendra<br />SCJP
Arvind Chavar
Ranch Hand

Joined: May 16, 2001
Posts: 53
Thanks!!
Ken Januski
Ranch Hand

Joined: Aug 08, 2002
Posts: 130
Am I wrong then in assuming that the specification leaves it up to the container to determine whether or not to allow default servlet mapping?
I know I can and should look this up but thought I'd ask here first.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: servlet mapping