This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton 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: 9520
22
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