GeeCON Prague 2014*
The moose likes Struts and the fly likes Default action for a namespace problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Default action for a namespace problem" Watch "Default action for a namespace problem" New topic
Author

Default action for a namespace problem

Kimbo Inatl
Greenhorn

Joined: Jun 30, 2010
Posts: 11
Hey everyone,

So I have an application using Struts 2 that is broken into two namespaces - / and /admin. If the user goes to the application using / like so:

http://localhost:9080/MyApp/

Then they will end up at the welcome page as defined in web.xml. I want a similar thing to happen if the user goes to:

http://localhost:9080/MyApp/admin

But I want them to end up at the admin page. Nothing I have tried so far has worked though. I've tried using default-action-ref, I've tried using a global result with an empty action - nothing seems to work. I just keep getting this error:

Error 404: SRVE0190E: File not found: {0}

HALP!

P.S. I'm running this app on Websphere 8.5 if that makes any difference.
Emanuel Borsoi
Greenhorn

Joined: Mar 27, 2012
Posts: 15
You should post web-xml and struts.xml.
 
GeeCON Prague 2014
 
subject: Default action for a namespace problem