This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Hands On Software Engineering with Python and have Brian Allbey on-line!
See this thread for details.
Win a copy of Hands On Software Engineering with Python this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

servlet mapping  RSS feed

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>
 
Arvind Chavar
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!!
 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 will open the floodgates of his own worst nightmare! All in a tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!