RE: Convention plugin: How do I have two methods on the same action using 2 different Interceptor stacks

2012-03-23 Thread Shrinivas Parashar
You can apply specific interceptor stack for the action using interceptorRef annotations. For ex. Put the below annotation above the method for which you want to apply paramsPrepareParamsStack stack, @Action(value="action1", interceptorRefs=@InterceptorRef("paramsPrepareParamsStack ")) For more

Re: Action mapping - match on anything

2012-03-23 Thread Paweł Wielgus
Hi Eric, maybe this will help: Best regards, Paweł Wielgus. 2012/3/23 Eric Lentz : > Anyone know of a way, in Struts 2, to assign an action that matches on > anything in the URL, including slashes? This would be a catch-all, if no > other action specification is more specific. > > I co

Re: Struts 1.1 and Ajax

2012-03-23 Thread Dave Newton
How are you making the request? What's being returned to the ajax call--json? Dave (pardon brevity and typos, on cell) On Mar 23, 2012 4:05 PM, "N P S Naidu" wrote: > hi, > Am using struts1.1 and ajax in my application development. I have send > asynchronous request to struts action class and

Struts 1.1 and Ajax

2012-03-23 Thread N P S Naidu
hi, Am using struts1.1 and ajax in my application development. I have send asynchronous request to struts action class and got the response(ajax response). Now i have to get the value of one property from the struts formbean object. How to retrieve the required property from ajax response? Here

Action mapping - match on anything

2012-03-23 Thread Eric Lentz
Anyone know of a way, in Struts 2, to assign an action that matches on anything in the URL, including slashes? This would be a catch-all, if no other action specification is more specific. I configured: If I have http://server/context/foo but it will not match on http://server/context/foo/bar

Convention plugin: How do I have two methods on the same action using 2 different Interceptor stacks

2012-03-23 Thread Shinobi
I am using struts 2.3.1.2 I have an action class called Students with 2 methods, list and save. Using the convention plugin and bang notation, I want the interceptor stack 'basicStack' to fire for method list and the interceptor stack 'paramsPrepareParamsStack' to fire for save. Is this possib

How the reset the model in session scope using ScopeModelDrivenInterceptor

2012-03-23 Thread Shrinivas Parashar
HI, I have extended the ScopeModelDrivenInterceptor to reset the model in session based on some criteria. I have overridden the resolveModel method of ScopeModelDrivenInterceptor as below. I am using this for wizard flow. protected Object resolveModel(ObjectFactory factory, ActionContext actio