Re: Using Two Parent Pakages!!

2013-07-11 Thread Lukasz Lenart
2013/7/11 Alireza Fattahi : > If the struts finds the result-type "json",in struts2-json-plugin.jar , why > doesn't it make this result-type available to all actions ? Why should I > address struts where this result type is defined ? Results are defined per package, actions are defined per packa

Re: Using Two Parent Pakages!!

2013-07-11 Thread Alireza Fattahi
From: Alireza Fattahi To: Struts Users Mailing List Sent: Wednesday, 10 July 2013, 10:50 Subject: Re: Using Two Parent Pakages!! Hi, So I define some thing like     Is it possible that I say the struts that this the default package for all packages ?! ~R

Re: Using Two Parent Pakages!!

2013-07-10 Thread Lukasz Lenart
2013/7/10 Alireza Fattahi : > Hi, > > So I define some thing like > > namespace="/"> > > > > > Is it possible that I say the struts that this the default package for all > packages ?! There is nothing like that - a default package - you can re-use your package in xml or with annotation: @P

Re: Using Two Parent Pakages!!

2013-07-10 Thread Alireza Fattahi
2013, 10:27 Subject: Re: Using Two Parent Pakages!! 2013/7/10 Alireza Fattahi : > 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 >

Re: Using Two Parent Pakages!!

2013-07-09 Thread Lukasz Lenart
2013/7/10 Alireza Fattahi : > 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 d

Re: Using Two Parent Pakages!!

2013-07-09 Thread Alireza Fattahi
za Fattahi From: Lukasz Lenart To: Struts Users Mailing List ; Alireza Fattahi Sent: Wednesday, 10 July 2013, 10:13 Subject: Re: Using Two Parent Pakages!! 2013/7/10 Alireza Fattahi : > Hi, > > I am using the convention in with json plugin so I

Re: Using Two Parent Pakages!!

2013-07-09 Thread Lukasz Lenart
2013/7/10 Alireza Fattahi : > Hi, > > I am using the convention in with json plugin so I add: > value="json-default" /> > Now I want to use the REST plugin so I should add: > value="rest-default" /> json-default [1] contains just one result definition and two interceptors, so you can merge it in

Using Two Parent Pakages!!

2013-07-09 Thread Alireza Fattahi
Hi, I am using the convention in with json plugin so I add: Now I want to use the REST plugin so I should add: How can I solve it !   ~Regards, ~~Alireza Fattahi