my dog learned polymorphism*
The moose likes Servlets and the fly likes Need Help for Correct Url Mapping for Servlet in web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Need Help for Correct Url Mapping for Servlet in web.xml " Watch "Need Help for Correct Url Mapping for Servlet in web.xml " New topic
Author

Need Help for Correct Url Mapping for Servlet in web.xml

Mohammad Ali
Greenhorn

Joined: Jan 03, 2006
Posts: 11
Please help me write correct url in my web.xml file. The following is my web.xml entry for my controller servlet.The following entry works fine when i run my application on my local laptop machine. I just cannot figure out what to write in my url mapping for my contrioller servlet so that my controller servlet can be found on the server once the application is uploaded on the host server on the internet.
My application name = ROOT.war
My hosting directory = http://javafaces.s43.eatj.com.
Please help me write the correct url mapping for my controller servlet.......Thanks

<servlet>
<servlet-name>ShadiManager</servlet-name>
<servlet-class>com.example.model.ServletController</servlet-class>
</servlet>


<servlet-mapping>
<servlet-name>ShadiManager</servlet-name>
<url-pattern>/ShadiManager</url-pattern>
</servlet-mapping>
Mohammad Ali
Greenhorn

Joined: Jan 03, 2006
Posts: 11
I am attaching the error which comes after i tried to login my application.
The index.jsp page comes fine but when i tried to login in my application using user-id/passowrd the Following Error comes on the server when i try to enter my application using
userid = guest
password = guest.

The Error
=========

HTTP Status 404 - Servlet ShadiManager is not available

--------------------------------------------------------------------------------

type Status report

message Servlet ShadiManager is not available

description The requested resource (Servlet ShadiManager is not available) is not available.


--------------------------------------------------------------------------------

Apache Tomcat/5.5.9
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need Help for Correct Url Mapping for Servlet in web.xml
 
Similar Threads
about web.xml file.
JSF 2.0 Facelets Problem
Question on MVC object creation
RequestDispatcher.forward problem
Problem with web.xml (WebLogic Server 8.1 SP2) ?