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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:58:41+00:00 2026-05-12T15:58:41+00:00

How can i redirect www.mysite.com/12345 to www.mysite.com/action?id=12345 using struts2?

  • 0

How can i redirect www.mysite.com/12345 to www.mysite.com/action?id=12345 using struts2?

  • 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-12T15:58:41+00:00Added an answer on May 12, 2026 at 3:58 pm

    I use URL rewriting to get these kind of flexible mappings working (though you could probably do it in struts proper, possibly with your own interceptor or something). There’s a great little project, urlrewritefilter that gets the job done. In your URL rewriting configuration you’d have a rule like:

    <rule>
      <from>^/(\d+)$</from>
      <to>/action?id=$1</to>
    </rule>
    

    Have a look at the manual to see if it is what you are looking for.

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

Sidebar

Related Questions

How can I redirect www.mysite.com/picture/12345 to www.mysite.com/picture/some-picture-title/12345? Right now, /picture/12345 is rewritten on picture.aspx?picid=12345
I want to redirect the url: http://www.mysite.com/invite/YhMck/en to http://www.mysite.com/auth/accept_invite/YhMck/en can any please help me
I wanted to know how to redirect users from http://www.mysite.com to http://mysite.com using htaccess,
Can someone please help me to force my website to redirect to using www.
I want to redirect one specific url like: www.example.com/test/ex.gif to static.example.com/ex.gif How can i
if i start off on a Detail page: http:\\www.mysite.com\App\Detail i have a controller action
I have in my log some URLS like: http://www.mysite.com/mypage/?fb_xd_fragment= I want to redirect this
I have the following htaccess to redirect users from www.mysite.com or http://mysite.com to http://mysite.com/subfolder
i have an asp.net-mvc site and one of the pages is http://www.mysite.com/Report users can
I am trying to capture a url such as http://www.mysite.com/somepage.php?sometext=somevalue and redirect it to.

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.