Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8941573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:20:13+00:00 2026-06-15T11:20:13+00:00

I have a servlet mapping like below. <servlet> <servlet-name>SubmitComment</servlet-name> <servlet-class>org.rohitsharma.db.servlet.SubmitComment</servlet-class> </servlet> <servlet-mapping> <servlet-name>SubmitComment</servlet-name> <url-pattern>/SubmitComment</url-pattern>

  • 0

I have a servlet mapping like below.

 <servlet>
     <servlet-name>SubmitComment</servlet-name>
     <servlet-class>org.rohitsharma.db.servlet.SubmitComment</servlet-class>
 </servlet>
 
 <servlet-mapping>
     <servlet-name>SubmitComment</servlet-name>
     <url-pattern>/SubmitComment</url-pattern>
 </servlet-mapping>

When I hit a form with action SubmitComment. It worked on my localhost.
But when I uploaded it on real host it give me error like.

Not Found

The requested URL /SubmitComment was not found on this server.

How should I change these mapping to get it working?

Here is the form:

 <form action="SubmitComment" method="post" id="leavereply">
      <ol><li>
        <label for="name">Name</label>
        <input id="name" name="name" class="text" />
      </li><li>
        <label for="email">Email Address</label>
        <input id="email" name="email" class="text" />
      </li><li>
        <label for="message">Your Message</label>
        <textarea id="message" name="message" rows="8" cols="50"></textarea>
      </li>
        <input type="hidden" id="blog_id" name="blog_id" value="<%out.print(blog.blog_id);%>">
      <li>
        <input type="image" name="imageField" id="imageField" src="images/submit.gif" class="send" />
        <div class="clr"></div>
      </li></ol>
      </form>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T11:20:14+00:00Added an answer on June 15, 2026 at 11:20 am

    It was server setting issue. Nothing related to the code or any mapping.
    Thanks for your time. It was some setting issue on my live hosts. I changed my host and things worked 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following URL pattern: <servlet-mapping> <servlet-name>name_of_a_servlet</servlet-name> <url-pattern>*.some_pattern</url-pattern> </servlet-mapping> If i have more
When I have in web.xml: <param-name>transformWsdlLocations</param-name> <param-value>true</param-value> and <servlet-mapping> <servlet-name>personWS</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping> auto-generated WSDL
I'm getting this error. my web.xml has this <servlet> <servlet-name>springweb</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/web-application-config.xml</param-value>
I am using Struts 1.2.7 and have the standard servlet mapping that uses *.do
I would like to have URL mappings that I'm having with spring framework like
I have standard servlet-mapping for Dispatcher Servlet - /app/* . I have controller that
I would like to access beans that i have defined in /WEB-INF/springws-servlet.xml from within
I have a servlet that does some business login and then redirects to a
I have a servlet running on GAE and I have a cron job that
We have a servlet which occupies more virtual memory on the server due to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.