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
11
votes
7 answers

Struts Hello world example : There is no Action mapped for namespace [/] and action name error

i am absolute beginner to Struts2. I am tying to follow tutorials on struts web site. i followed this tutorial. i have some trouble with it. i created dynamic web project on eclipse. Then i followed the tutorial. However when i run the example i get…
erencan
  • 3,725
  • 5
  • 32
  • 50
10
votes
1 answer

Struts2 .action extension causing CSS, JavaScript and Struts Dojo to break

We have been running on Struts 2.1.8 for some time and all Struts actions have been working as expected, i.e. href's to the Struts actions are rendered with the action name with no extension. Here is the JSP code that set's up the links:
Greg Kennedy
  • 805
  • 1
  • 11
  • 23
7
votes
1 answer

Could not find action or result

I am getting: com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn Could not find action or result There is no Action mapped for namespace [/] and action name [] associated with context path [/]. - [unknown location] I am using a…
7
votes
8 answers

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

I've looked through all similar Q's on stackoverflow but it didn't help, sorry. The main difference I have from all of them is that I got EMPTY action name in error message. Googling didn't help :( Hope someone just could give a hint where to look…
pinkesh
  • 81
  • 1
  • 1
  • 3
6
votes
2 answers

Deploying Struts2 application to Weblogic 12c

I have a Web Application that uses Struts2, Spring and JPA. In the app, we're using annotations. When we deploy the application in eclipse, if we deploy it as a virtual application (right click server, select properties, select WebLogic, select…
NuAlphaMan
  • 713
  • 4
  • 12
  • 25
5
votes
3 answers

Action mapping not working after migrating from Struts 2.3.12 to 2.3.20

Currently I am using Struts 2.3.12 in my project and all the things are working fine. Now I have requirement to upgrade Struts version to 2.3.20 to address some security issue. I changed the Struts and required Struts plugins version to 2.3.20 in my…
S Panday
  • 61
  • 1
  • 6
5
votes
4 answers

Struts 2 : There is no Action mapped for namespace [/]

I am new to Struts 2 and I have been following a video tutorial on Struts 2(Koushik). I have created the Struts.xml, the action class and JSPs as same as created in the tutorial. But it gives the following exception. Exception: Jan 13, 2014 9:30:48…
Amila Fonseka
  • 392
  • 1
  • 5
  • 15
5
votes
2 answers

Why welcome-file-list is not working if I remove struts2 .action extension?

I have a problem if I remove the .action extension inside my Struts2 application. I put this in my struts.xml: The application works correctly except in the index page. I have in my…
Pigueiras
  • 18,778
  • 10
  • 64
  • 87
4
votes
2 answers

There is no Action mapped for namespace [/] and action name [Test] associated with context path [/TestStruts]. - [unknown location]

I'm trying my first application on struts 2.3.16 in NetBeans 7.2.1. It shows the following error on entering a URL - http://localhost:8080/TestStruts/Test.action (There is a Test.jsp page). WARNING: Could not find action or result:…
Tiny
  • 27,221
  • 105
  • 339
  • 599
4
votes
1 answer

struts2 conventions plugin not working properly

I was trying to run the application with convention plugin Struts2. The application was fine with struts.xml configured like this:
3
votes
1 answer

Changing struts.xml file name for a multi-module Maven web project

I have a Maven project with multiple modules. Out of four modules, two of them are web modules. Here is the structure. MyProject | |__ api | |__ commons | |__ web_child | |__ web_main web_main module is the main one and it…
Coder
  • 6,948
  • 13
  • 56
  • 86
3
votes
1 answer

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

I am working on struts 2.0 using annotations and created a web project in which I am just doing a login and redirecting on successful login to another jsp. However, whenever i try to login, it shows me an error message :- There is no…
AppleBud
  • 1,501
  • 8
  • 31
  • 47
3
votes
6 answers

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

I've looked through all similar Qs on stackoverflow but it didn't help, sorry. The main difference I have from all of them is that I got EMPTY action name in error message. Googling didn't help :( Hope someone just could give a hint where to…
java_newbie
  • 821
  • 1
  • 13
  • 24
2
votes
1 answer

How do I pass an arguments to an AbstractAction in a KeyBinding?

I have the following keybindings: InputMap iMap = component.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW); ActionMap aMap = component.getActionMap(); iMap.put(KeyStroke.getKeyStroke("shift LEFT"), "MOVE_LONG_LEFT"); …
M.E.
  • 4,955
  • 4
  • 49
  • 128
2
votes
1 answer

There is no Action mapped for namespace [/] and action name [viewBooks] associated with context path [/SampleTC_test]. - [unknown location]

I know that there are several other threads with the same error, but trust me, non of them helped me in solving my issue. I have a web application built on Java using Struts2 version struts-2.3.16 and Hibernate. My issue is, in my application I have…
Ghost Rider
  • 688
  • 3
  • 17
  • 38
1
2 3 4 5 6 7