This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts 2 constant not working

 
Pj Casaro
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 9591
34
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

http://localhost:8080/Struts2NewChapter8/secure/secure/blah
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!