• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Mohammad Ali
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic