File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Default action for a namespace problem

Kimbo Inatl

Joined: Jun 30, 2010
Posts: 13
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:


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:


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}


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

Joined: Mar 27, 2012
Posts: 15
You should post web-xml and struts.xml.
I agree. Here's the link:
subject: Default action for a namespace problem
It's not a secret anymore!