dcsimg
Mapping default action with namespace
0 posts in topic
Thread View Thread View
TOPIC ACTIONS:
 

Mapping default action with namespace...
Eti38
Mon Apr 22, 2013 08:47 AM

Hi all!

I want to have an action mapping on each "/mobile/*" urls.

When I put the folowing in my struts.xml :

			<
			package
			name=
			"default-mobile-action"
			extends
			=
			"mobile-default"
			>
			<action name=
			"*.*"
			class
			=
			"ca.tink.vitrine.webapp.action.DefaultAction"
			>
			....
			</action>
			</package>
		

My /mobile/* urls go to the default action, that is corect.
But when I change the mapping like that :

			<
			package
			name=
			"default-mobile-action"
			extends
			=
			"mobile-default"
			namespace=
			"/mobile"
			>
			<action name=
			"*.*"
			class
			=
			"ca.tink.vitrine.webapp.action.DefaultAction"
			>
			....
			</action>
			</package>
		

Now, the /mobile/* urls dont access the action (no action is found...)

It is realy not the behaviour I expected...

What did I missed?
About | Sitemap | Contact