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
0
votes
2 answers

Using * in regular expression in the action name of struts2

My url may or may not have a certain parameter and I set the action class for such a url as follows :
0
votes
0 answers

@ActionMapping method called twice in Liferay

I was working on a small project, where i have a jsp which has a form with action on it. When I click on that button, it calls the action mapping method successfully. In that method I am calling a db which does select insert on DB on some 30k…
Chika
  • 139
  • 1
  • 12
0
votes
0 answers

struts 1 actionmapping trouble mapping to 2 paths

I have an action mapping which only seems to map to one of the paths (UnderAge), there is some logic in my action class , I'm unsure if I've made a silly programming mistake in my action class or if I have the action-mapping wrong . Action mapping…
DerekReilly1990
  • 49
  • 2
  • 10
0
votes
3 answers

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

I am attaching my files. Kindly help me out. I gave my url path as http://localhost:8080/Struts2Check/getTutorial.action struts-config.xml
0
votes
1 answer

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

I'm new with Struts2. I'm sorry but I've tried different solutions already suggested on StackOverflow,they didn't worked. I followed these tutorial's instructions:http://www.tutorialspoint.com/struts_2/ Can someone help me? This is the…
0
votes
0 answers

Not able to execute the application in Struts 2

I am new to struts 2 and wrote a helloworld application in it. But when I run the index.jsp file on Tomcat server it displays Configuration file code is
Mayank
  • 83
  • 1
  • 9
0
votes
0 answers

Struts and jasper configuration issue

I have got empty action name in error message when I was run my URL (http://localhost:8080/Jasper/myJasperTest.action). Even I could not find the issue by referring other stackoverflow Q's. I really appreciate if one of you can help me to sort out…
0
votes
0 answers

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

Sep 16, 2015 6:02:40 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 2522 ms Sep 16, 2015 6:02:49 PM org.apache.struts2.dispatcher.Dispatcher warn WARNING: Could not find action or result: /Login_Reg/loginauth.action …
Sourav
  • 91
  • 1
  • 6
  • 12
0
votes
0 answers

Can struts.xml and struts annotation be used at the same time

I am using two action classes in my application, i am using annotation in one action class and i want to use struts.xml for the other action class. Is it possible. When i am using annotation, this is working @Namespace("/") @ResultPath("/") public…
ALOK456
  • 3
  • 2
0
votes
1 answer

Struts.xml vs. struts.xml

I am new to Struts2 and I am working on a simple project that helps me to learn. I started with my Struts.xml file with the S capitalized. When I run it, I get my web page as expected with a couple fields and a submit button. When I fill them in and…
0
votes
0 answers

How to handle unknown action in struts2?

I am using struts2 (struts2-core-2.3.16.3.jar) and unable to get the below configuration to work when there is a unknown action is requested. /jsp/common/error.jsp
user1493834
  • 756
  • 4
  • 11
  • 25
0
votes
1 answer

Do Struts2 namespaces have to start with a forward slash?

I use the Struts2 framework for webapp development. In every tutorial I encounter, I see that all namespaces start with a forward slash /. Even the basic "default" namespace has the namespace "/" instead of the empty string "" or the string…
user1884155
  • 3,616
  • 4
  • 55
  • 108
0
votes
0 answers

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

I am getting this exception in jboss 5.1.0m but if I deploy it in jboss 5.0.0 it works fine. 10:02:28,379 WARN [ServletUrlRenderer] No configuration found for the specified action: 'login' in namespace: '/'. Form action defaulting to 'action'…
NULL Pointer
  • 129
  • 1
  • 1
  • 10
0
votes
1 answer

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

I have deployed an application on Web. Apache Tomcat version is 6.0.36 URL:www.sopmax.com The index.html (welcome page) forwards the request to sopmax.com/welcome. i'm getting error: There is no Action mapped for namespace [/] and action name…
Kumar Gaurav
  • 1,287
  • 3
  • 19
  • 47
0
votes
1 answer

jetty + struts 2 : how to add action to mapped from namespace [/]?

Have searched on the web for a while, and did not find the answer for my problem. Any insights are welcome. I followed the instructions at https://github.com/apache/struts-examples/tree/master/helloworld, and can access the servlet at …
yuyang
  • 1,511
  • 2
  • 15
  • 40