Re: paramsPrepareParamsStack and token interceptor

2014-08-21 Thread Lukasz Lenart
Great! Thanks! 2014-08-21 10:31 GMT+02:00 Fabian Richter : > Done, see WW-4390 > > Am 20.08.2014 um 21:09 schrieb Lukasz Lenart: >> >> 2014-08-19 17:09 GMT+02:00 Fabian Richter : >>> >>> Hi, >>> >>> when using paramsPrepareParamsStack with

Re: paramsPrepareParamsStack and token interceptor

2014-08-21 Thread Fabian Richter
Done, see WW-4390 Am 20.08.2014 um 21:09 schrieb Lukasz Lenart: 2014-08-19 17:09 GMT+02:00 Fabian Richter : Hi, when using paramsPrepareParamsStack with the convention plugin I'm getting multiple errors/warnings in devMode=true: Error setting expression 'token&#

Re: paramsPrepareParamsStack and token interceptor

2014-08-20 Thread Lukasz Lenart
2014-08-19 17:09 GMT+02:00 Fabian Richter : > Hi, > > when using paramsPrepareParamsStack with the convention plugin I'm getting > multiple errors/warnings in devMode=true: > > Error setting expression 'token' with value > ['5UVO47K811DQ15DUZF4QV2NQ8DHIH

paramsPrepareParamsStack and token interceptor

2014-08-19 Thread Fabian Richter
Hi, when using paramsPrepareParamsStack with the convention plugin I'm getting multiple errors/warnings in devMode=true: Error setting expression 'token' with value ['5UVO47K811DQ15DUZF4QV2NQ8DHIHSUY', ] Error setting expression 'token' with value ['5

Re: paramsPrepareParamsStack only populates pojo, neither String nor int

2013-12-16 Thread jotpe
Thanks for reply! Sorry, my fault: I explained not everything well. I do not need access the User object in my navigation interceptor. They have no contact points! I just execute the interceptor before the paramsPrepareParamsStack to be sure the navigation content gets generated, before the

Re: paramsPrepareParamsStack only populates pojo, neither String nor int

2013-12-13 Thread Chris Pratt
s interceptor. You can either call the params interceptor one more time before your navigation interceptor or you can replicate the paramsPrepareParamsStack into your new stack and put your navigation interceptor anywhere in that stack you want. (*Chris*) On Fri, Dec 13, 2013 at 6:53 AM, jotp

paramsPrepareParamsStack only populates pojo, neither String nor int

2013-12-13 Thread jotpe
Hello List, I build myself a custom interceptorstack. The core part has to be the paramsPrepareParamsStack, because i work with an or-mapper. In my action class, there are 2 variables: private User user

Re: Set parameter for both params interceptors in paramsPrepareParamsStack

2013-10-10 Thread Lukasz Lenart
It should work as you reference the same instance (interceptors are instantiated per stack), maybe it is something else? Maybe try copy paramsPrepareParamsStack and redefine excludeParams? Regards -- Ɓukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/10/9 Dmytro Kostiuchenko : > Hi

Fwd: Set parameter for both params interceptors in paramsPrepareParamsStack

2013-10-09 Thread Dmytro Kostiuchenko
many ERROR entries in log like this one: Error setting expression 'token' with value ['...', ] The problem here is that referred paramsPrepareParamsStack has 2 'params' interceptors, but 'excludeParams' parameter is set only for the f

Re: paramsPrepareParamsStack-prepare-method problem

2012-03-16 Thread Mounir Benzid
Loosely based on the paramsPrepareParams interceptor I found this interceptor configuration to solve my problem The params interceptor fires once before the prepare interceptor. So far there're no side effects I'm not sure why the paramsPrepareParams input,back,cancel input,back,

Re: paramsPrepareParamsStack-prepare-method problem

2012-03-15 Thread Mounir Benzid
Am 14.03.2012 21:21, schrieb Dave Newton: And you've set the other referenced properties appropriately? Well, here are my settings value="myapp-common" /> I double checked my code there seems nothing wrong with the pattern matching in general. For instance when I request t

Re: paramsPrepareParamsStack-prepare-method problem

2012-03-14 Thread Dave Newton
nir Benzid >> wrote: >> >> My problem is the id is always null. >>> >>> First I thought it could be b/c of the way the defaultStack is set up so >>> I >>> switched to paramsPrepareParamsStack, yet the problem still remains. >>>

Re: paramsPrepareParamsStack-prepare-method problem

2012-03-14 Thread Mounir Benzid
id is always null. First I thought it could be b/c of the way the defaultStack is set up so I switched to paramsPrepareParamsStack, yet the problem still remains. Any ideas on how to obtain the id from the request? Thanks! Mounir @Namespace("/public") public class PersonCRUDAction

Re: paramsPrepareParamsStack-prepare-method problem

2012-03-14 Thread Dave Newton
t could be b/c of the way the defaultStack is set up so I > switched to paramsPrepareParamsStack, yet the problem still remains. > > Any ideas on how to obtain the id from the request? > > Thanks! > Mounir > > @Namespace("/public") > public class PersonCRUDActio

paramsPrepareParamsStack-prepare-method problem

2012-03-14 Thread Mounir Benzid
My problem is the id is always null. First I thought it could be b/c of the way the defaultStack is set up so I switched to paramsPrepareParamsStack, yet the problem still remains. Any ideas on how to obtain the id from the request? Thanks! Mounir @Namespace("/public") pu

paramsPrepareParamsStack not having scopedModelDriven interceptor?

2009-12-30 Thread Sanjay Patel
Hi All, Although it is documented that paramsPrepareParamsStack is similar as defaultStack, there seems to be some differences. For example, it does not have the scopedModelDriven interceptor. If I need the scopedModelDriven, will it be safe to create a custom stack by copying the

paramsPrepareParamsStack not catching the params

2009-12-26 Thread Sanjay Patel
Hi, Using paramsPrepareParamsStack with ModelDriven, I want to receive an userId and then retrieve the user and display it. I see a strange behavior - even if I pass something like http://localhost:8080/gweb/profile?userId=5 (having an action property userId) and try to catch it in prepare or

Re: Problem with paramsPrepareParamsStack

2009-08-10 Thread spsarolkar
lastname; >> } >> @Column(name="USER_PASSWORD") >> public String getPassword() { >> return password; >> } >> @RequiredStringValidator(message="Password must be >> present",key="validate.password",trim=true) >> public void setPassword(String password) { >> this.password = password; >> } >> } >> >> >> findUser-success.jsp wrote: >>> >

Re: Problem with paramsPrepareParamsStack

2009-08-10 Thread spsarolkar
e="Password must be > present",key="validate.password",trim=true) > public void setPassword(String password) { > this.password = password; > } > } > > > findUser-success.jsp wrote: >> >> <%...@page contentT

Re: Problem with paramsPrepareParamsStack

2009-08-10 Thread Dale Newfield
spsarolkar wrote: public void prepare(){ if(emailId==null){ this.user=new User(); } else{ this.user=userService.findByEmail(emailId); } } So if emailId is null you construct a new one, but if it is not null and findB

Problem with paramsPrepareParamsStack

2009-08-10 Thread spsarolkar
java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) When i tried to debug it I am getti

RE: paramsPrepareParamsStack

2009-01-19 Thread Stanley, Eric
Wes, you were spot on. I didn't extend the right package. Thanks. :) -Ryan -Original Message- From: Wes Wannemacher [mailto:w...@wantii.com] Sent: Friday, January 16, 2009 3:17 PM To: Struts Users Mailing List Subject: Re: paramsPrepareParamsStack On Fri, 2009-01-16 at 13:49

Re: paramsPrepareParamsStack

2009-01-16 Thread Wes Wannemacher
On Fri, 2009-01-16 at 13:49 -0700, Stanley, Eric wrote: > All, > My humble app need to make use of the paramsPrepareParamsStack, but > is having trouble finding the right class it seems. Here is the error: > > SEVERE: Exception starting filter struts2 > > Unable to f

paramsPrepareParamsStack

2009-01-16 Thread Stanley, Eric
All, My humble app need to make use of the paramsPrepareParamsStack, but is having trouble finding the right class it seems. Here is the error: SEVERE: Exception starting filter struts2 Unable to find interceptor class referenced by ref-name paramsPrepareParamsStack - interceptor-ref - file

Re: [struts] about paramsPrepareParamsStack

2008-02-14 Thread GF
> Almost. Really it should be the other way around, since you don't want > user-set parameters to override your static parameters. I agree with you. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: [struts] about paramsPrepareParamsStack

2008-02-13 Thread Dale Newfield
GF wrote: do you think is there any issue adding also before the first in this way: ... ... Almost. Really it should be the other way around, since you don't want user-set parameters to override your

about paramsPrepareParamsStack

2008-02-13 Thread GF
paramsPrepareParamsStack is defined this way

How come paramsPrepareParamsStack isn't the default stack?

2007-06-25 Thread David Harland
It seems to me that for the majority or senarios you would want paramsPrepareParamsStack to be the default stack. One thing we have noticed with this as our default and devMode turned on is that we get errors with pages with checkboxs because the checkbox interceptor is being called after the

Why isn't paramsPrepareParamsStack the default stack?

2007-06-22 Thread David Harland
It seems to me that for the majority or senarios you would want paramsPrepareParamsStack to be the default stack. One thing we have noticed with this as our default and devMode turned on is that we get errors with pages with checkboxs because the checkbox interceptor is being called after the

[S2] paramsPrepareParamsStack and validation

2007-05-27 Thread Will Smith
I don't quite understand how the validation is handled when using the paramsPrepareParamsStack. I have an action with a view() method that will be called via a get request specifying a blog id (blog.id) which should be numeric. This is working, but I want to make sure that if someone pass