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

How to exclude particular action name (servlets) from Spring MVC Request mapping so that it looks for that action into web.xml

In Struts I have used Doing above, Struts avoids looking for /servlet-action into struts.xml and goes to web.xml. How to achieve this in Spring MVC? Or can @RequestMapping be…
Ashish Kataria
  • 520
  • 3
  • 11
  • 31
1
vote
2 answers

Why method prefix not working in Struts 2.3.32

I use Struts 2.3.32 and this is the code. methodPrefix.jsp <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib prefix="s" uri="/struts-tags" %>
Rikimaru
  • 23
  • 3
1
vote
1 answer

Namespace configuration when set a specific context-root in Struts 2

When I set a context-root in weblogic.xml for my application, what is the default namespace for package in Struts 2? ex: I set /home/app/exec and I access my app with the following…
Ariana
  • 283
  • 1
  • 6
  • 17
1
vote
1 answer

Spring MVC equivalent of Action Mapping in Struts 2

Is there an equivalient/similar action mapping xml configuration available for SpringMVC just as there is for Struts 2? e.g. in a Struts2 app I have this:
Ken Alton
  • 686
  • 1
  • 9
  • 21
1
vote
3 answers

Why this NPE when I request for Struts2 action?

I am using Struts and Struts 2.x, I am getting below exception when I am trying to make request to action class from Struts 2 form. File: org/apache/struts2/impl/StrutsActionProxy.java Line number: 69 Stacktraces java.lang.NullPointerException …
Gautam
  • 3,707
  • 5
  • 36
  • 57
1
vote
1 answer

No action mapped for namespace [/] and action name

I have just started with Struts2 framework . So I am just trying to create a basic program . Code in web.xml: struts2
Abhijeet Panwar
  • 1,837
  • 3
  • 26
  • 48
1
vote
1 answer

Implementing Spring Security with Struts 2

I want to implement Spring Security + Struts2 I had a problem when I execute my project : There is no Action mapped for namespace [/] and action name [j_spring_security_check] associated with context path [/Project] because there is no action…
hafid8h
  • 13
  • 4
1
vote
1 answer

HTTP 404 - There is no Action mapped for namespace [/modeldriven] and action name [datosUsuario] associated with context path [/FormularioMD]

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: There is no Action mapped for namespace [/modeldriven] and action…
1
vote
1 answer

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

Why i am getting this error in my First struts2 application Home.jsp : <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
MMMMS
  • 2,179
  • 9
  • 43
  • 83
1
vote
0 answers

Struts2 app wont work after ant deploy

I have the following problem: When I run ant command on my project it compiles successfully but when I try to reach action it gives me the following error: HTTP Status 404 - There is no Action mapped for namespace [/] and action name [registrate]…
user4080732
  • 137
  • 4
  • 14
1
vote
1 answer

Facing issue in adding mutiple Struts actions

I am facing issue in displaying a struts action for result of json type. In the similar there is LoginJson.action which works fine. I do not understand where is the mistake. The error I could see is Error 404 There is no Action mapped for namespace…
Meher
  • 2,545
  • 3
  • 26
  • 53
1
vote
1 answer

How see wsdl using Struts 2 in browser

I have implemented a web service in my project. I also have deployed project on JBoss server successfully. I can see web service in jboss admin console in Web Service section. when i open wsdl url in browser it tells : HTTP Status 404 - There is no…
Lalit Chattar
  • 1,914
  • 8
  • 27
  • 49
1
vote
1 answer

Unable to get Struts2 Hello World to work using Eclipse and Maven

This site doesn't allow user to ask technical questions to their tutorial which I believe is broken: http://www.mkyong.com/misc/how-to-use-mkyong-tutorial/ I'm using: maven: 3.2.1 tomcat 7 java 1.7 Eclipse: Luna Release (4.4.0) I'm getting this…
user3769040
  • 235
  • 4
  • 14
1
vote
1 answer

Struts 2 annotation error when calling action

Hi all I'm having problems using Struts 2 Annotated Actions In my pom.xml I have: org.apache.struts struts2-convention-plugin
1
vote
1 answer

Struts 2 annotations not working with Java 8

Struts 2 Annotations are not working with Java 8. I have the following example that worked with Java 7, but giving the error in Java 8. I guess the errors is related to Libraries and Java 8. Does anyone have this problem?? If so how do we solve…
pragada
  • 11
  • 1
  • 2