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

Posted By:   Eti38
Posted On:   Monday, April 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 n   More>>

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?
   <<Less
About | Sitemap | Contact