struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yasser Zamani <yasser.zam...@live.com>
Subject Re: is it possible to use the same namespace in 2 separate configuration files
Date Mon, 22 May 2017 20:09:43 GMT
You definitely can use multiple packages with same namespace. Just remember packages cannot
have same names. You also need to include them all in your main struts.xml like:

<include file="path to your config files"/> 


Reference: https://stackoverflow.com/questions/6545324/struts2-same-namespaces-in-different-struts-xml-files

rick Degrande <rickydegrande@gmail.com> نوشت:

>
>struts.xml
>  <package name="one" namespace="/myspace" ...
>    action config ...
>  </package>
>   <include file="struts/two.xml"/>
>  
>end struts.xml
>
>
>two.xml
>
>   <package name="two"  namespace="/myspace" ...
>     action config...
>   </package>
>end
>
>having it add all new configuration to the myspace namespace ??
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
>For additional commands, e-mail: dev-help@struts.apache.org
>
Mime
View raw message