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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:43:41+00:00 2026-06-17T09:43:41+00:00

I am using Spring MVC + Spring Security and I am trying to implement

  • 0

I am using Spring MVC + Spring Security and I am trying to implement pagination.
To do that, I modified the link in my menu that is pointing to the page where I am going to use pagination.

When clicking the “List” link in my menu with the code below, I got an error 400 : The requested resource is not available.

<li>
  <a href="<c:url value="/list.htm" ><c:param name="page" value="1" /></c:url>">List
  </a>
</li>

When adding the parameter to the link, without using <c:param>, same thing, error 400:

<li><a href="<c:url value="/list.htm?page=1" />">List</a></li>

When simply using this, without passing any parameter, the link is working properly:

<li><a href="<c:url value="/list.htm" />">List</a></li>

Here is the related code in my controller:

@RequestMapping(value = "/list", method = RequestMethod.GET)
    public String getEmployees(@RequestParam(value = "page", required = false) int page, ModelMap model) {
        model.addAttribute("employees", this.employeeManager.getEmployees(page));
        return "list";
    }
  • 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-17T09:43:42+00:00Added an answer on June 17, 2026 at 9:43 am

    Try the following request mapping which uses a wildcard.

    @RequestMapping(value = "/list.htm*", method = RequestMethod.GET)
        public String getEmployees(@RequestParam(value = "page", required = false) int page, ModelMap model) {
            model.addAttribute("employees", this.employeeManager.getEmployees(page));
            return "list";
        }
    

    You could also try without the wildcard but including .htm

    @RequestMapping(value = "/list.htm", method = RequestMethod.GET)
        public String getEmployees(@RequestParam(value = "page", required = false) int page, ModelMap model) {
            model.addAttribute("employees", this.employeeManager.getEmployees(page));
            return "list";
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using spring MVC, and I have a custom authentication/security system that I had
I am using Spring MVC with Hibernate. My page has a button that creates
I'm using Spring MVC and Spring Security 3. My problem is, that if I
I'm using spring MVC and spring security. I have annotation-driven controller and trying to
Using Spring MVC + Security I have a business requirement that the users from
I am using spring 3 mvc/security frameworks. I have created a Controller class that
we're using Spring MVC with Spring security. One of the requirements is that if
I'm using Spring's form tag library in a Spring MVC application that I am
I have configured in following way that spring MVC app using Spring 3.1.1.RELEASE web.xml
I'm using Spring MVC and Spring Security on a project, and am implementing a

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.