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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:12:12+00:00 2026-06-10T02:12:12+00:00

domain/Forum_show.action?pg=2&forum=java How do I rewrite that to: domain/forum/java/pg/2

  • 0

domain/Forum_show.action?pg=2&forum=java

How do I rewrite that to:

domain/forum/java/pg/2

  • 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-10T02:12:13+00:00Added an answer on June 10, 2026 at 2:12 am

    Use the URL structure you like right from the start. The ability to map to any URL structure is a feature of the Servlet API.

    Also, you don’t need to have an action extension (the .action part) in Struts2. In my opinion, creating bogus extensions never made sense.

    Here are a few pages where I have talked about using Named Variable Pattern Matching in order to provide prettier URLs. I use this technique in all of my Struts2 apps and it yields much nicer URLs similar to your second example.

    • NamedVariablePatternMatcher
    • Better URLs with Struts2
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a sub-domain forum.new4u.com for the site new4u.com . Actually the forum
I have cookies for the domain .forum.mywebsite.com and for .mywebsite.com . Is it possible
I have a form that handles editing of a domain model (A). This domain
I would like to do something like below: <form action=www.domain.com?retURL=www.domain2.com?parameter=a method=POST> but this is
I have an application that pulls names from the active directory for the domain
I have a domain model that features a number of 'elements', pieces of text
I want to catch every request that comes in on my domain name and
I'm trying to match the '12345' from a url in this form: http://domain.com/folder/title_of_this_12345 So
On my domain I have a form workflow where users enter data on one
I have my domain object, Client , I've got a form on my JSP

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.