Hi everyone,
Which is the preferred way of generating a PortletURL object using Struts 2
portlet framework? I have the need to obtain a PortletURL object instead of
a String because after that I'll need to add parameters to this PortletURL.
Thank you in advance.
I was using 2.1.8 and recently upgraded to 2.3.14.
And I realized that my interceptor got initialized twice and it didnt
happen before.
This happens when I declare a default package in struts.xml and include
other xml which have packages that extends my default package. But the
thing is no matter
I'm not sure I understand what you mean regarding using the "include"
element (i.e., precisely what you're doing) but I thought that each package
would have its own set of interceptors, meaning there would be two
instances, hence init would be called twice.
This would be trivial to determine by ch
@Dave, I also could be wrong, but I remember that interceptors are
singletone (maybe there is a single instance per package).
@Steven looks like you're using Spring, if yes, could you check if you
experience the same behavior w/o it?
Il giorno 24/apr/2013 14:04, "Dave Newton" ha
scritto:
> I'm no
Definitely singleton-ish, although i thought there was an
instance-per-package--I thought I had packages with the same interceptor
configured in different ways, but I can't check at the moment.
Dave
On Wed, Apr 24, 2013 at 9:28 AM, Maurizio Cucchiara
wrote:
> @Dave, I also could be wrong, but
Yep, it makes sense definitely, otherwise there would not be way to share a
single instance with different params.
Il giorno 24/apr/2013 15:31, "Dave Newton" ha
scritto:
> Definitely singleton-ish, although i thought there was an
> instance-per-package--I thought I had packages with the same inte
@Maurizio I am indeed using Spring, I will try without Spring.
@Dave what i mean by "include" is that I use the tag
I do understand that Interceptor is singleton-ish. And I do understand if I
defined the same interceptor in two different stacks there should be two
different instances.
However the
@Maurizio sorry in the sample app I do not using Spring. I am using Spring
in my projects, sorry for the confusion
And sorry this behavior started on 2.3.7 and 2.3.4.1 does not have this
behavior
On Thu, Apr 25, 2013 at 9:13 AM, Steven Yang wrote:
> @Maurizio I am indeed using Spring, I will t
2013/4/25 Steven Yang :
> And sorry this behavior started on 2.3.7 and 2.3.4.1 does not have this
> behavior
I would said, it isn't expected behavior ;-)
Regards
--
Ćukasz
+ 48 606 323 122 http://www.lenart.org.pl/
-
To unsubs
9 matches
Mail list logo