struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alireza Fattahi <afatt...@yahoo.com>
Subject Re: Using Two Parent Pakages!!
Date Wed, 10 Jul 2013 07:20:55 GMT
Hi,

So I define some thing like

<package name="myPackage" extends="json-default,rest-default"    namespace="/"> 

  </package> 

 
Is it possible that I say the struts that this the default package for all packages ?!


~Regards,
~~Alireza Fattahi


________________________________
 From: Lukasz Lenart <lukaszlenart@apache.org>
To: Struts Users Mailing List <user@struts.apache.org>; Alireza Fattahi <afattahi@yahoo.com>

Sent: Wednesday, 10 July 2013, 10:27
Subject: Re: Using Two Parent Pakages!!
 

2013/7/10 Alireza Fattahi <afattahi@yahoo.com>:
> Thanks !
>
> I found a code here:http://struts.apache.org/release/2.0.x/docs/zero-configuration.html
>
>
> @ParentPackage({"my-parent-package1, my-parent-package2"}) package com.mycompany.myapp.actions
import org.apache.struts2.config.ParentPackage;
>
>
> Can I do it ?!

Right, you can extend from more than one package

<package name="employee" extends="struts-default,json-default"
namespace="/employee">

http://struts.apache.org/release/2.0.x/docs/package-configuration.html


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message