File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Struts 2 constant not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 constant not working" Watch "Struts 2 constant not working" New topic

Struts 2 constant not working

Pj Casaro
Ranch Hand

Joined: Jul 13, 2010
Posts: 47
I can't get this struts2 constant to work:

I have this wildcard mapping:

When I try and go to http://localhost:8080/Struts2NewChapter8/secure/blah I get an error: "There is no Action mapped for namespace /secure and action name blah." Why does this happen?
Ankit Garg

Joined: Aug 03, 2008
Posts: 9291

By looking at your other topic, you are using /secure as namespace and in your action's mapping too. So you'll have to enter a URL like


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
I agree. Here's the link:
subject: Struts 2 constant not working
Similar Threads
Struts 2 wildcard matching issues
Authentication Problem
Can we configure default action that executes when none matches
Always getting error- no result defined for action and result success
Custom result type reference is causing my deploy to fail