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

  • Home
  • SEARCH
  • 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 7805749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:18:51+00:00 2026-06-02T02:18:51+00:00

I have two login pages, one for user and other for admin. In order

  • 0

I have two login pages, one for user and other for admin. In order to know who is trying to login, I think of having a url pattern like /app/admin/login and /app/user/login. I cannot change by subdomain. This is a grails application which uses spring security. So by default all the login requests are sent to /j_spring_security_check url. What should I do in order to change the login submission url from /j_spring_security_check to /app/$context/login where $context can be user or admin?

Another problem I face is, how to get the request params my custom UserDetailsServices class? The params is not available in that class, so I cannot write params.context like we do in Filters class.

Any insight into this would be highly helpful.
Thanks.

  • 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-02T02:18:52+00:00Added an answer on June 2, 2026 at 2:18 am
    1. This post might help with the j_spring_security question.
      The solution is not for Grails directly, but I have seen that Grails allows you to customize Spring any way you like.

    2. For the service layer question regarding params:
      params is an implicit HttpRequest.parameters object for Controller. One should never try to expect any Http awareness in the service layer.

    So its a good thing we can’t reference it in the service layer. My advice would be to pass it as an argument to the service class method.

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

Sidebar

Related Questions

I have two web pages that I am trying to send information between. One
I have a usual login form consisting of two input fields, one for login,
I have a scenario where I am trying to login a user to my
I have two types of filed one is Required and Other is Not Required.
i have one login.jsp web page where i have two textboxes for username and
I have two links with classes (login-form and register-form) relevant to their target forms
I have two jsps. One is login_first.jsp , another one is main.jsp . After
I have a login form for my website. This login form have two text
I have the following two interfaces: public interface IMembershipProvider { object Login(ILoginProviderParameters loginParameters); void
hai all, in my iphone application i have a login view with two text

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.