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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T22:44:16+00:00 2026-06-03T22:44:16+00:00

I have a java webapp with both struts 1 and struts 2. Inside the

  • 0

I have a java webapp with both struts 1 and struts 2. Inside the app there are several Struts 2 namespaces and Struts 1 modules. For example:

/public (Struts 1 module)
/accounting (Struts 2 namespace)
/auditing (Struts 2 namespace)
/receipts (Struts 1 modules)

In my web.xml, the Struts 1 and 2 filters are specifically mapped to the correct namespace/module. For example,

<filter-mapping>
    <filter-name>struts2</filter-name>
    <url-pattern>/accounting/*</url-pattern>
</filter-mapping>

<filter-mapping>
    <filter-name>struts1</filter-name>
    <url-pattern>/public/*</url-pattern>
</filter-mapping>

Inside my Struts 1 area, I have a request to have a Struts 1 action forward to a Struts 2 action. I tried the following:

<action path="/myRedirect" forward="/checkAccountRecords.action" module="accounting" />

However, this results in the following stack trace:

The Struts dispatcher cannot be found.  This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher needed for this tag. - [unknown location]

I know that this could be fixed by mapping the Struts 1 parts of the website through the Struts 2 filter, but this causes problems for our specific website and I would like to avoid doing that.

I also tried the action without the module:

<action path="/myRedirect" forward="/accounting/checkAccountRecords.action" />

I got the folowing error:

can't find /receipts/accounting/checkAccountRecords.action (file not found)

I also tried the following action mapping:

<action path="/myRedirect" forward="../accounting/checkAccountRecords.action" />

I got the following error:

Path ../accounting/checkAccountRecords.action does not start with a "/" character

So is there anything left that I could try? How do I get a Struts 1 action to return a redirect to a Struts 2 action?

  • 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-03T22:44:19+00:00Added an answer on June 3, 2026 at 10:44 pm

    As a workaround, inside my Struts action, I manually modified the response.sendRedirect to send the user to the correct page instead of mapping it inside the struts.xml file.

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

Sidebar

Related Questions

I have a java webapp which needs to upload files via http and then
I have a Java EE webapp that works perfectly when I run it on
Hello I am a Java web app developer I have a problem, I would
I have a web app built on Java Servlet technology. I am thinking of
Background: I have created a CRUD web app using a java based RAD tool
I have a simple JSF web app as follows. The Java class contains: private
We have a PHP webapp that calls a Java binary to produce a PDF
I want to have a Java Web App and a normal Java App that
I have a java web app that makes back-end use of a third-party web
Situation is pretty straightforward. I have a Java webapp that I'm converting to be

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.