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
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
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
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
>
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
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
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
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
8 matches
Mail list logo