Questions tagged [action-mapping]

Maps a request URL to the Struts2 action.

The action mappings are the basic "unit-of-work" in the framework. Essentially, the action maps an identifier to a handler class. When a request matches the action's name, the framework uses the mapping to determine how to process the request.

Find more about Action Mappings on the docs page.

95 questions
2
votes
2 answers

404 error when Struts2 action extension is set to empty

I want to remove the action suffix extension in Struts2 application. Added to the struts.xml but Apache server throws 404 error. HTTP Status 404 - There is no Action mapped for namespace [/] and…
2
votes
0 answers

There is no Action mapped for namespace [/] and action name [login] associated with context path [/HelloWorld]

there. I'm a beginner to struts2. I created a dynamic web project on eclipse so as to using struts 2. There are something wrong with it, and i just don not know why. the Console output is: Could not find action or result There is no Action…
josephlee
  • 21
  • 2
2
votes
1 answer

Struts 2 application gives error when deployed via admin console

I'm running weblogic 10.3.5 with mavenized struts 2/spring application. the application runs fine when published to server via eclipse but when i export the application to a .war file and deploy via the admin console and run it it gives me error…
Gurkha
  • 1,104
  • 4
  • 20
  • 37
2
votes
1 answer

How to handle 404 error when an action is not found in Struts 2

In Struts 2 if action is not found I want to redirect to 404.jsp page I have added the error code in web.xml file as below. 403 /403.jsp
2
votes
1 answer

Struts 2.3 ignores wildcard actions

I'm setting up an application that uses Struts 2.3 and Tiles 2. Some pages will be heavily Struts driven (e.g. lots of CRUD) while others will be simple, static HTML/JSP pages. I want to set up some actions that handle specific functionality and…
2
votes
6 answers

HTTP Status 404 - There is no Action mapped for namespace [/] and action name [login] associated with context path [/struts2]

I have learned theory of Struts2 and now practicing. Facing problems while executing project.I searched in Google in many ways but could not find result.Please help me. Below is the code.Please help me friends... Project structure: web.xml
user2940073
  • 79
  • 1
  • 1
  • 5
2
votes
2 answers

How to pass parameters while redirecting to another Action using type=redirect?

I need to pass a parameter from an action to the other one, but it runs into following error. Messages: There is no Action mapped for namespace [/Product/Product] and action name [desc] associated with context path []. struts.xml
Tim Norman
  • 421
  • 1
  • 12
  • 31
2
votes
1 answer

There is no Action mapped for namespace [/] and action name [abc] associated with context path [APP_NAME]

I am getting this issue when using Annotations in my Struts2 code. My Annotated Action class seems something like this which is using interceptors, and my architecture is based on Spring 3, Struts 2, and using Struts2 Convention Plugin…
2
votes
1 answer

Action mapped for namespace error with struts2

I am getting this error with Struts2 There is no Action mapped for namespace [/] and action name [LoginAction] associated with context path [/TestBoard]. - [unknown location] Project context root = TestBoard Here's my struts.xml:
2
votes
1 answer

Behavior of Struts2 and convention-plugin when there is Index(extends ActionSupport)

We have an Action class named 'Index' immediately under com.example.common.action and is annotated @ParentPackage('default') which is declared in package directive in struts.xml and has "/" for its namespace and extends "struts-default". It also…
hanishi
  • 165
  • 2
  • 11
2
votes
1 answer

There is no Action mapped for namespace [/] and action name [CheckLogin] associated with context path []

I am getting an error when trying to deploy my application using ant. When i run the application from intellij it deploys and runs correctly. However, when I build and deploy using ant I am getting the error: There is no Action mapped for…
BON
  • 433
  • 2
  • 9
  • 18
2
votes
1 answer

Mix regex and wildcard in struts2 struts.xml

Following http://struts.apache.org/2.2.3/docs/wildcard-mappings.html, below configurations work Wildcard works
duckegg
  • 1,379
  • 2
  • 13
  • 20
1
vote
2 answers

How to map a path parameters in URL to the action in Struts 2

We are using Struts 6.2 on Tomcat 9, and map all .action extensions to actions, for example save-user.action maps to an action correctly. The web application needs to handle this path parameters ( path variables) ex:…
Alireza Fattahi
  • 42,517
  • 14
  • 123
  • 173
1
vote
1 answer

cannot run Struts 2 Hello World

Problem When I run my project and try to run ERROR Dispatcher Dispatcher initialization failed Unable to load configuration. - bean -…
Aman
  • 586
  • 8
  • 20
1
vote
1 answer

Struts 2 dynamic URL patterns with dot

I tried to include dot . in a dynamic URL pattern in Struts 2 but it is not working My Struts 2 configuration for dynamic URL is as follows
mrrk
  • 11
  • 2