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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:35:26+00:00 2026-06-14T19:35:26+00:00

I have an action that receives some parameters from user (e.g. date). This action

  • 0

I have an action that receives some parameters from user (e.g. date). This action produces many different reports, so it has many different methods. I need to tune those parameters (set a time to midnight) before every method. The prepare method is executed before parameters are bound. Is there any other interceptor or any other convention that allows me to do that?

  • 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-14T19:35:28+00:00Added an answer on June 14, 2026 at 7:35 pm

    Use the <interceptor-ref name="paramsPrepareParamsStack"/>

    <!-- An example of the params-prepare-params trick. This stack
        is exactly the same as the defaultStack, except that it
        includes one extra interceptor before the prepare interceptor:
        the params interceptor.
    
        This is useful for when you wish to apply parameters directly
         to an object that you wish to load externally (such as a DAO
         or database or service layer), but can't load that object
         until at least the ID parameter has been loaded. By loading
         the parameters twice, you can retrieve the object in the
         prepare() method, allowing the second params interceptor to
         apply the values on the object. -->
    

    If you are using the Convention Plugin apply it on action

    @Action(value="action1", interceptorRefs=@InterceptorRef("paramsPrepareParamsStack"))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an action 'approval' that renders a view which displays some content from
I have an action that relies on User.Identity.Name to get the username of the
Im not sure if I'm doing this right. I have an action that I
I have an action method that depending on some conditions needs to return a
I have an get action, which has a couple of parameters. In view I
I have a system that receives input from the public each day. Each morning
I have written a function which receives some parameters (email addresses) and send email.
i have a form that submits some data and gets html back. this html
I have to display some data that I receive from the server as json
i have an action that return a file content. i added: Response.AddHeader(Content-Disposition, attactment; filename:\

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.