>
>
>
>
>
>
>
>dojo\..*,^struts\..*
>
>
>
>input,back,cancel,browse
>
>
--
View this message in context:
http://old.nabble.com/Interceptor-Stack-config-tp30239747p30247343.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: user-uns
t;
>
> input,back,cancel,browse
>
>
> input,back,cancel,browse
>
>
>
>
they are configured, so I would
expect to see the parameter interceptor listed twice. In addition, placing
breakpoints on the parameter setters and the prepare method in my action
confirms that I am not using the paramPrepareParam stack.
Regards
--
View this message in context:
http://old.nabble.co
Hi RogerV
I don't think config-browser plugin tells you which stack are you using,
it just show you all of actions in namespaces you have configured,
of course, including default namespace
(2010/11/18 18:18), RogerV wrote:
Hi
I'm setting up a new Struts 2 project - the first time I've started
input,back,cancel,browse
--
View this message in context:
http://old.nabble.com/Interceptor-Stack-config-tp30239747p30239747.html
Sent from the Struts - User mailing list archiv
Thanks Lukasz,
I found this out the hard way :)
Kevin
On 26 July 2010 09:31, Lukasz Lenart wrote:
> defaultStack [1] already has validation interceptor defined, you
> shouldn't duplicate it.
> The best way is to create your own stack and play with interceptors -
> not to refer to other stack.
>
defaultStack [1] already has validation interceptor defined, you
shouldn't duplicate it.
The best way is to create your own stack and play with interceptors -
not to refer to other stack.
[1] http://struts.apache.org/2.x/docs/interceptors.html
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenar
I'm using the REST plugin and am trying to setup annotations.
My package looks like this:
This works in that I ge
e sujets à la manipulation, nous ne pouvons accepter aucune responsabilité
pour le contenu fourni.
> Date: Wed, 19 May 2010 02:30:31 -0700
> From: roger.var...@googlemail.com
> To: user@struts.apache.org
> Subject: Re: Interceptor stack
>
>
>
>
> Paweł Wielgus wrot
Paweł Wielgus wrote:
>
> Hi,
> try to follow this example:
>
> http://poulwiel.blogspot.com/2009/09/config-browser-plugin-in-struts2.html
>
I was using config-browser - that's how I knew the interceptor stack didn't
contain my custom interceptors. In the end, I
;
>
>
>
> dojo\..*,^struts\..*
>
>
>
> input,back,cancel,browse
>
>
>
input,back,cancel,browse
--
View this message in context:
http://old.nabble.com/Interceptor-stack-tp28592300p28592300.html
Sent from the Struts - User mail
it looks ok to me, You can compare your solution to mine described here:
>
> http://poulwiel.blogspot.com/2009/01/intercepting-all-actions-inside-my-app.html
>
>
Pawel, great! I got it. I was missing this:
and also this line in struts.properties:
struts.convention.default.parent.package=default
Hi Sanjay,
it looks ok to me, You can compare your solution to mine described here:
http://poulwiel.blogspot.com/2009/01/intercepting-all-actions-inside-my-app.html
Best greetings,
Paweł Wielgus.
2009/12/30 Sanjay Patel :
> Hi,
>
> I am using this simple interceptor configuration, just followi
Hi,
I am using this simple interceptor configuration, just following
http://struts.apache.org/2.1.8/docs/interceptor-configuration.html :
/WEB-INF/content/index.jsp
ckage, and your actions are
getting mapped in Convention into another package. To fix this you
need to either: make convention put your actions in the package where
the interceptor stack is defined (using @ParentPackage, or setting
"struts.convention.default.parent.package"), or if
: make convention put your actions in the package where
the interceptor stack is defined (using @ParentPackage, or setting
"struts.convention.default.parent.package"), or if you really need
your actions to be on a different package, you can create a new one in
xml, that extends the one tha
ationManager.java:55)
... 15 more
I noticed on the convention-plugin page that there is a reference to
using a default interceptor stack and a custom interceptor but not a
custom interceptor stack. I assumed you could use either.
@InterceptorRefs({
@InterceptorRef("interceptor-1"),
> Did what you told but now i have got an really odd behaviour.
> I am using this strus config:
>
>
>/WEB-INF/view/jasper.jsp
>
>/WEB-INF/view/jasper.jsp
>
>
>
On Friday 24 October 2008 09:57:18 Nils-Helge Garli Hegvik wrote:
> If you can, I would suggest that
> you re-organize your application so that every event (usually a post)
> is followed by a redirect (using the redirect action result type).
> That way, the "RenderDirect" action is never used.
Did
I'm using struts 2.0.11.2 with codebehind. I have defined three
different abstract packages to be able to select the interceptor stack
for different actions. I configure the action using the @ParentPackage
annotation selecting different packages. This, however, does not work.
It seems tha
> However, PRG does allow transfering objects in the session (ActionErrors,
> Messages and FieldErrors for example have to be put there to show them on the
> next action - have to be "handwritten" interceptor or something).
>
The default portlet interceptor stack already h
Nvm, forget what i said - there it is:
getRequest() instead of using getActionRequest ... thanks Nils pointing this
to me, i think this should work.
--
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html
Really, I'm not out
Am Freitag, 24. Oktober 2008 11:09:43 schrieb Torsten Krah:
> PortletActionContext.getActionRequest().getPortletSession()
Some more thoughts about this.
I think this is a design error in struts2.
public static ActionRequest getActionRequest() {
if (!isEvent()) {
throw new
> But the "redirectAction" is used in renderPhase and there i can't get the
> ActionRequest.
>
> ActionRequest cannot be obtained in render phase
Correct, but why do you need it in the render phase? Maybe you can
decouple your action so that it completely separates the state change
logic from the
Am Freitag, 24. Oktober 2008 09:57:18 schrieben Sie:
> If you can, I would suggest that
> you re-organize your application so that every event (usually a post)
> is followed by a redirect (using the redirect action result type).
I still can but i don't see how it would work.
If i use "redirectActi
tag, 24. Oktober 2008 07:35:18 schrieben Sie:
>> Is this what you're looking for?
>>
>> http://struts.apache.org/2.0.12/docs/interceptors.html#Interceptors-Interce
>>ptorParameterOverriding
>>
>> Nils-H
>
> That won't work.
> I need to overwrite
Am Freitag, 24. Oktober 2008 07:35:18 schrieben Sie:
> Is this what you're looking for?
>
> http://struts.apache.org/2.0.12/docs/interceptors.html#Interceptors-Interce
>ptorParameterOverriding
>
> Nils-H
That won't work.
I need to overwrite the "defaultStack&q
Is this what you're looking for?
http://struts.apache.org/2.0.12/docs/interceptors.html#Interceptors-InterceptorParameterOverriding
Nils-H
On Thu, Oct 23, 2008 at 1:09 PM, Torsten Krah
<[EMAIL PROTECTED]> wrote:
> I am using my own Stack and wonder why parameter setting fails although i did
> ex
I am using my own Stack and wonder why parameter setting fails although i did
exclude them:
dojo\..*,d-.*-(p|s|o),^struts\..*
I debugged a little bit and the fault is the "renderDirect" Acti
Is it possible to invoke the default interceptor stack for a static resource?
I want to use an interceptor to protect resources, but so far the only way I
can prevent users from directly accessing a html or jsp is by forcing all
requests through a servlet filter. I would like to get away from
(This is really "theorizing with insufficient data" but) have you checked
what your packages extend from, via the "extends" property...
Gabriel Belingueres-2 wrote:
>
> 2008/5/9, David Harland <[EMAIL PROTECTED]>:
>> Is it possible to set a different
2008/5/9, David Harland <[EMAIL PROTECTED]>:
> Is it possible to set a different default interceptor stack per package using
> default-interceptor-ref?
Yes.
I have split my struts configuration into mutiple files each with a
different package name. I have set the default in the fi
Is it possible to set a different default interceptor stack per package using
default-interceptor-ref? I have split my struts configuration into mutiple
files each with a different package name. I have set the default in the first
file and the default for the second in the second file but the
Hi
I have something like this:
aaa
bbb
And the problem is, that only parmB is set, parmA have default value.
To have both params set properly I must set all param on stack or on
action, but how to mix it?
Im usin
Hello,
I have been having a little trouble with the interceptor stack but I have quite
a bit of info, so
I'm hoping someone can help me out.
Here it goes:
I created my own interceptor stack with the following:
i am having a strange problem with doing file uploads using a custom
interceptor stack. basically, if my custom interceptor stack does not
directly reference the defaultStack then i am not getting request
parameters from my multipart requests. the easiest way to describe it
is by showing
What is a typical interceptor-stack for a Tiles app? I'm extending
tiles-default now and things work okay. However, it seems awful slow! How
much of this performance problem might have to do with struts.devMode =
true?
--
Scott
[EMAIL PROTECTED]
I can confirm these results based on my own webwork profiling
experience. I wouldn't worry too much about interceptors that you don't
use--the penalty is very minimal.
David H. DeWolf wrote:
mraible wrote:
Also, are there any performance reasons to have separate stacks for
display
only
mraible wrote:
Also, are there any performance reasons to have separate stacks for display
only (list) screens vs. forms (crud)?
I recently went through a series of performance monitoring and tuning
and found that standard interceptors that are NOT executed are logged as
taking 0ms. So, wha
cks for display
only (list) screens vs. forms (crud)?
Thanks,
Matt
--
View this message in context:
http://www.nabble.com/-struts-2--Simplifying-the-interceptor-stack-tf3196039.html#a8874246
Sent from the Struts - User mailing list a
42 matches
Mail list logo