struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: CodeBehind @ParentPackage annotation seems to not work in struts 2.3.15.1
Date Tue, 29 Oct 2013 13:23:33 GMT
The problem is with @Namespace annotation in HelloWorldAction which
doesn't play well with init-param actionPackages. Simple move
HelloWorkAction to package org.apache.struts.helloworld.test and set
actionPackages tp org.apache.struts.helloworld and remove @Namespace
annotation.


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

2013/10/22 Greuel, Jim <jim_greuel@fws.gov>:
> Thanks Lukasz.  Yes, setting defaultParentPackage fixes the problem for the
> sample app, but my real app has multiple custom struts packages, so I can't
> specify a single default that works in all cases.
>
> Jim
>
>> In 2.0.11 the Codebehind plugin was just a .... UnknownHandler ;-)
>
>> Try add this:
>> <constant name="struts.configuration.classpath.defaultParentPackage"
>> value="basicstruts2"/>
>
>> And you don't have to include "struts-plugin.xml" - framework does it
>> for you ;-)
>
>
>> 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
View raw message