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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:12:07+00:00 2026-06-03T03:12:07+00:00

In a Spring MVC 3.1 application I’m trying to implement a remember-me feature (with

  • 0

In a Spring MVC 3.1 application I’m trying to implement a remember-me feature (with info saved in the database).

Here’s what I currently have :

  • I created a persistent_logins table.
  • I have this in my security context file :

    <form-login login-page="/login" 
            authentication-failure-url="/login?err=true"
            default-target-url="/" 
            username-parameter="username" 
            password-parameter="password"
            login-processing-url="/validatelogin" />
    
    <remember-me key="some_random_key" 
             token-validity-seconds="31536000" 
             data-source-ref="dataSource" />
    
  • In my login.jsp, I have :

    <form action="/validatelogin" method="post">
        username : <input type='text' id='username' name='username' value='${SPRING_SECURITY_LAST_EXCEPTION.authentication.principal}' />
        <br />
        password : <input type='password' id='password' name='password' />
        <br /><br />
        remember me : <input type="checkbox" name="_spring_security_remember_me" />
        <br /><br />
        <input type="submit" value="submit" />
    </form>
    

In the “<form-login>” bean, I’ve been able to rename the default “j_password” and “j_username” fields that have to be used in the jsp, using username-parameter and password-parameter. But I don’t find a way to rename the “_spring_security_remember_me” checkbox field.

Any idea on how to rename it?

  • 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-03T03:12:09+00:00Added an answer on June 3, 2026 at 3:12 am

    That is set using the parameter property of RememberMeServices.

    Sadly this isn’t settable using the namespace config. Here are a couple of ways you could set it:

    1. Create a custom RememberMeServices and use it using <remember-me services-ref="myRememberMeServices">. Set the property on your bean.

    2. Use a BeanPostProcessor (see 1.8) to set the property on the default RememberMeServices.

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

Sidebar

Related Questions

I have been trying to get a spring MVC test application to work. Here
I have a Spring MVC application trying to use a rich domain model, with
I have Roo-generated Spring MVC application connected to PostgreSQL using Hibernate. I am trying
We have a utility spring-mvc application that doesn't use a database, it is just
We have Spring MVC application. We are trying to integrate the Spring security in
I have a spring mvc application that I have broken up into separate maven
I'm currently building a Spring MVC application. I was looking to use JSP pages
I have a Spring Web MVC application that I'd like to serve a large,
I have a spring MVC application using JSP as my view technologies with Jquery
So I have a spring mvc web application that I built in IntelliJ 9,

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.