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 3226024
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:24:26+00:00 2026-05-17T16:24:26+00:00

I can’t realize why do I have 404 error while trying to access /liginform.dlp

  • 0

I can’t realize why do I have 404 error while trying to access /liginform.dlp through POST method

I have the following web.xml mapping:

  <servlet-name>doolloop</servlet-name>
    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>doolloop</servlet-name>
    <url-pattern>*.dlp</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>doolloop</servlet-name>
    <url-pattern>/index.dlp</url-pattern>
  </servlet-mapping>
  <welcome-file-list>
    <welcome-file>index.dlp</welcome-file>
  </welcome-file-list>

doolloop-servlet.xml looks like this:

<context:component-scan base-package="com.doolloop.controllers" />
<bean id="viewResolver"
class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix">
<value>/</value>
</property>
<property name="suffix">
<value>.jsp</value>
</property>
</bean>

I have two jsp pages
/index.jsp
/forms/loginform.jsp

The controllers looks lke this:

@Controller
public class DoolloopController{
    protected final Log logger = LogFactory.getLog(getClass());

    @RequestMapping("/index.dlp")
    public ModelAndView index(){
        logger.info("Return View");
        return new ModelAndView("index");
    }

The following code brings 404 error:

 @RequestMapping(value="/loginform.dlp",method = RequestMethod.GET)
        public ModelAndView CheckLogin(){
            ModelAndView mv = new ModelAndView("/form/loginform");
            return mv;
        }

If I change it to the following way it works perfectly:

@RequestMapping(value="/loginform.dlp",method = RequestMethod.GET)
        public String showForm() {
                return "/forms/loginform";

what is the problem? please help

  • 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-05-17T16:24:27+00:00Added an answer on May 17, 2026 at 4:24 pm

    Perhaps your resolved JSP path starts with double slash (one from the prefix property and another from the returned value).

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

Sidebar

Related Questions

Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) I have a Rails
I am trying to loop through a bunch of documents I have to put
Can you cast a List<int> to List<string> somehow? I know I could loop through
I have a jquery bug and I've been looking for hours now, I can't
Can I use the following across all browsers? <a href=# onclick=doSomething()>Click here.</a> Is this
Can anyone tell me what's wrong with this robots.txt? http://bizup.cloudapp.net/robots.txt The following is the
I need to solve the following question which i can't get to work by
If all tables I want to delete from have the column gamer_id can i
Can the first char of a string be retrieved by doing the following? MyString.ToCharArray[0]
Can you have submenus with the top level set to checkable in WPF? I

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.