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
1
vote
1 answer

No action mapped - Struts 2

Good afternoon, I realise this question has been asked multiple times but these questions were mostly caused by the person placing the struts.xml file in the incorrect place or mis-spelling a path name or something. I've followed the tutorial from…
Katana24
  • 8,706
  • 19
  • 76
  • 118
1
vote
1 answer

Getting a 404 There is no Action mapped for namespace error

I'm working a Struts2 Web Application. Everything was running fine. All actions are getting mapped properly and the application correctly redirects to pages. However, when I do the SAME for this particular module (related to File Upload), it just…
Saturnian
  • 1,686
  • 6
  • 39
  • 65
1
vote
4 answers

WebSphere Issue

I working in an Java application. I am using Struts2 and Hibernate. The application was working fine in Tomcat7 , But when I deployed that On IBM"S Websphere I am getting the following error for the following URL http://localhost:8080/MYAPPS Error…
Amar
  • 565
  • 2
  • 8
  • 15
1
vote
2 answers

Struts 2 simple success page doesn't direct on class SampleAction

I have followed a tutorial in youtube by about struts I completely followed every step but I have a problem my program doesn't direct me to the class. I know that it doesn't direct because it does not show the message System.out.println("from…
user2805663
1
vote
0 answers

Struts2 - the s:a link works, but s:submit that generated this exception. the params seems not working

Struts Problem Report Struts has detected an unhandled exception: Messages: There is no Action mapped for namespace [/advisers] and action name [/BursaLinkWeb/advisers/editAdvisorProfile.actionactionValue1zoneValeditAAZone] associated with…
simson
  • 11
  • 1
1
vote
1 answer

action chaining error:There is no Action mapped for namespace [/] and action name [login.action] associated with context path [/chaining]

my task is on struts2 action chaining,my program name is chaining ,i am using correct syntax,but it is not working. struts.xml login.action
seedi
  • 94
  • 10
1
vote
2 answers

Struts 2 GAE No action mapped for namespace [/]

I'm learning Struts 2 for a project requirement and I've met some issues. Following this tutorial at: http://www.mkyong.com/google-app-engine/google-app-engine-struts-2-example/ And what I've done extra: Added an index.jsp into the war…
1
vote
1 answer

Index file not loading in Google App Engine using struts2

I am getting the below error when I try to access my struts2 tiles application (in google app engine) There is no Action mapped for namespace [/] and action name [] associated with context path []. - [unknown location] Below is the stack…
1
vote
4 answers

Welcome Message in Struts 2 running in Google App Engine

I have the following lines below in web.xml index.jsp But when I access http://localhost:8888 I received the error below: There is no Action mapped for namespace [/] and…
JR Galia
  • 17,229
  • 19
  • 92
  • 144
0
votes
1 answer

How can I get the forward path in Struts

In the below mentioned Project I want to retrieve below mentioned forward path marked in Yellow. Is it possible? I have tried to do this - String af = mapping.getPath(); But this actually returns the below mentioned marked in Yellow. I tried using…
Abhinav
  • 23
  • 2
0
votes
1 answer

How do I bind a key to a JButton?

I have a simple JButton linked to an actionPerformed method. Now I want to bind a key to the button so that when i press this key on the keyboard it performs the same action it would perform by pressing the button with the mouse. I found out this…
sottaceto
  • 3
  • 2
0
votes
0 answers

Saving a information displayed as different tab in browser to .html file

I am working on a project which is developed with Java Struts 2 framework. I am completely new to this. In project, when user clicks on a report button, a report is shown in different tab (the url of it looks like…
user523956
  • 501
  • 2
  • 9
  • 23
0
votes
1 answer

Action Mapping in Struts2

Currently migrating an app from Struts1 to Struts2. When I click my "submit" button, it gives me an error saying "There is no Action mapped for action name requestInput". What is wrong with my code that is the cause of this error? web.xml
0
votes
2 answers

Regular Expressions Struts 1.3 Action Mapping

I am working on a project using Struts 1.3 from what I can tell, given that this is at the top of the struts-config-default.xml file:
penguinsource
  • 1,120
  • 3
  • 16
  • 40
0
votes
1 answer

How to map two action names with one action tag in Struts 2

I have a method ajouterModifierClient() in my action class pl.admin.HomeAction that handles both operations, the add operation and the update operation. How to map two disctinct action names in on single action tag. Here is my wanted result:
marsouf
  • 1,107
  • 8
  • 15