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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:19:10+00:00 2026-05-23T08:19:10+00:00

Of course parameters can pass by URL ( result type Redirect / Redirect Action

  • 0

Of course parameters can pass by URL (result type Redirect/Redirect Action),
or pass to action by @Action(params) (Static Parameters Interceptor)


What I want

id=123 must exist in URL after validation errors (@Result(name="input"))

/update?id=123

Similar to RESTful url pattern (Struts2-rest-plugin not be considered) :

/update/123

I use the redirect-after-post technique + Message Store Interceptor for success action, but it this can’t be use for input after validation errors, because the data of action (include invalid data) will lost / restore to default.

Any solution / suggestion is welcome. 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-05-23T08:19:10+00:00Added an answer on May 23, 2026 at 8:19 am

    Have you tried wildcards to capture the data?

    Here is a link to some struts2 documentation (reading it quickly I didn’t think it was very useful): http://struts.apache.org/2.0.6/docs/wildcard-mappings.html

    However if you follow though this post and solution you’ll clearly see how to capture data from the URL (Although the poster of that question was more interested in excluding parts of the url, but it just makes the topic more complete): Struts2 Wildcard action mapping with dummy data

    It’s possible that your issue is largely because of using “Redirect After Post”. There is little value for doing this in struts2. In general this is better solved using a custom interceptor for what ever cross cutting concerns you have for those actions. If you’re worried about double submissions the TokenInterceptor interceptor already addresses this.

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

Sidebar

Related Questions

It appears the query string parameters you can pass to a rest method in
Of course most languages have library functions for this, but suppose I want to
Of course, I can explain it in whole books. But I read a few
Of course we can do this, but is it alright to do so? Are
I want to pass a varying number of argument to varying functions. I set
Right now we use DI/IOC and when we need to pass extra parameters to
Why can't you pass an anonymous method as a parameter to the BeginInvoke method?
What is the cleanest way to pass the result of this recursive function back
I am working on creating an MVC framework, which passes any url parameters after
With window.open method I open new site with parameters, which I have to pass

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.