Re: Token Session Interceptor and back button
Paul, I was thinking about this example...what did you have in mind as a way to achieve that, tough, i.e., that a browser back refreshes the page? I can only see some javascript method/hack for that. Were you thinking of something else? Miguel On Thu, 2013-12-05 at 14:59 -0600, Paul Benedict wrote: Make sure your back-button action refreshes the page. You can't reuse a token from the browser's cache. It needs to regenerated. On Thu, Dec 5, 2013 at 12:39 PM, semog12 semog1epi...@gmail.com wrote: Hi, I am using the token session interceptor for a form and I have this situation: 1) I am in the form page; 2) I leave the form page; 3) Go back to the form page by the back button; 4) Submit the form; And of course the form is not submitted and the token returns invalid.token but do not adds no actionError. It will not be interesting to add an action error? Ok, I can resend to a page with a message but I already have a error page that presents the action errors when necessary. Thanks, André Gomes -- View this message in context: http://struts.1045723.n5.nabble.com/Token-Session-Interceptor-and-back-button-tp5714861.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
param interceptor is not working fine if list contain more than 10 items?
I have customerAtction which customer dataObject. Customer data object contains arraylist of orders. If I have 10 order placed from ui then struts 2 works fine and i get 10 orders populated in my customer object input type='hidden' name ='customer.orders[0].item' value ='someItem'/// First item to input type='hidden' name ='customer.orders[9].item' value ='someItem'/// Tenth item But if i have 11 items i cet customer object with 11 orders with first and last order correctly filled but inbetween 9 orders are correctly filled input type='hidden' name ='customer.orders[0].item' value ='someItem'/// First item to input type='hidden' name ='customer.orders[10].item' value ='someItem'/// Tenth item Some how param interceptor is not working fine for more than 10 items. I am not sure what i am missing here?
Fwd: param interceptor is not working fine if list contain more than 10 items?
correcting typo errors in my previous post I have customerAtction which customer dataObject. Customer data object contains arraylist of orders. If I have 10 order placed from ui then struts 2 works fine and i get 10 orders populated in my customer object input type='hidden' name ='customer.orders[0].item' value ='someItem'/// First item to input type='hidden' name ='customer.orders[9].item' value ='someItem'/// Tenth item But if i have 11 items i cet customer object with 11 orders with first and last order correctly filled but inbetween 9 orders are not correctly filled. In between 9 values are filled as null object input type='hidden' name ='customer.orders[0].item' value ='someItem'/// First item to input type='hidden' name ='customer.orders[10].item' value ='someItem'/// eleventh item Some how param interceptor is not working fine for more than 10 items. I am not sure what i am missing here? -- Forwarded message -- From: Mohit Gupta motgu...@gmail.com Date: Fri, Dec 6, 2013 at 9:34 PM Subject: param interceptor is not working fine if list contain more than 10 items? To: Struts Users Mailing List user@struts.apache.org I have customerAtction which customer dataObject. Customer data object contains arraylist of orders. If I have 10 order placed from ui then struts 2 works fine and i get 10 orders populated in my customer object input type='hidden' name ='customer.orders[0].item' value ='someItem'/// First item to input type='hidden' name ='customer.orders[9].item' value ='someItem'/// Tenth item But if i have 11 items i cet customer object with 11 orders with first and last order correctly filled but inbetween 9 orders are correctly filled input type='hidden' name ='customer.orders[0].item' value ='someItem'/// First item to input type='hidden' name ='customer.orders[10].item' value ='someItem'/// Tenth item Some how param interceptor is not working fine for more than 10 items. I am not sure what i am missing here?
Re: param interceptor is not working fine if list contain more than 10 items?
How is the property defined in the action? On Fri, Dec 6, 2013 at 11:35 AM, Mohit Gupta motgu...@gmail.com wrote: correcting typo errors in my previous post I have customerAtction which customer dataObject. Customer data object contains arraylist of orders. If I have 10 order placed from ui then struts 2 works fine and i get 10 orders populated in my customer object input type='hidden' name ='customer.orders[0].item' value ='someItem'/// First item to input type='hidden' name ='customer.orders[9].item' value ='someItem'/// Tenth item But if i have 11 items i cet customer object with 11 orders with first and last order correctly filled but inbetween 9 orders are not correctly filled. In between 9 values are filled as null object input type='hidden' name ='customer.orders[0].item' value ='someItem'/// First item to input type='hidden' name ='customer.orders[10].item' value ='someItem'/// eleventh item Some how param interceptor is not working fine for more than 10 items. I am not sure what i am missing here? -- Forwarded message -- From: Mohit Gupta motgu...@gmail.com Date: Fri, Dec 6, 2013 at 9:34 PM Subject: param interceptor is not working fine if list contain more than 10 items? To: Struts Users Mailing List user@struts.apache.org I have customerAtction which customer dataObject. Customer data object contains arraylist of orders. If I have 10 order placed from ui then struts 2 works fine and i get 10 orders populated in my customer object input type='hidden' name ='customer.orders[0].item' value ='someItem'/// First item to input type='hidden' name ='customer.orders[9].item' value ='someItem'/// Tenth item But if i have 11 items i cet customer object with 11 orders with first and last order correctly filled but inbetween 9 orders are correctly filled input type='hidden' name ='customer.orders[0].item' value ='someItem'/// First item to input type='hidden' name ='customer.orders[10].item' value ='someItem'/// Tenth item Some how param interceptor is not working fine for more than 10 items. I am not sure what i am missing here? -- e: davelnew...@gmail.com m: 908-380-8699 s: davelnewton_skype t: @dave_newton https://twitter.com/dave_newton b: Bucky Bits http://buckybits.blogspot.com/ g: davelnewton https://github.com/davelnewton so: Dave Newton http://stackoverflow.com/users/438992/dave-newton
Re: param interceptor is not working fine if list contain more than 10 items?
Dave. Here is brief about action class *CustomerOrderAction contains * private Customer customer; // getters and setters * Customer contains* private ListShopItem orders = new ArrayListShopItem(); * ShopItem contains* public int item = -1; // getters and setters On Fri, Dec 6, 2013 at 10:09 PM, Dave Newton davelnew...@gmail.com wrote: How is the property defined in the action? On Fri, Dec 6, 2013 at 11:35 AM, Mohit Gupta motgu...@gmail.com wrote: correcting typo errors in my previous post I have customerAtction which customer dataObject. Customer data object contains arraylist of orders. If I have 10 order placed from ui then struts 2 works fine and i get 10 orders populated in my customer object input type='hidden' name ='customer.orders[0].item' value ='someItem'/// First item to input type='hidden' name ='customer.orders[9].item' value ='someItem'/// Tenth item But if i have 11 items i cet customer object with 11 orders with first and last order correctly filled but inbetween 9 orders are not correctly filled. In between 9 values are filled as null object input type='hidden' name ='customer.orders[0].item' value ='someItem'/// First item to input type='hidden' name ='customer.orders[10].item' value ='someItem'/// eleventh item Some how param interceptor is not working fine for more than 10 items. I am not sure what i am missing here? -- Forwarded message -- From: Mohit Gupta motgu...@gmail.com Date: Fri, Dec 6, 2013 at 9:34 PM Subject: param interceptor is not working fine if list contain more than 10 items? To: Struts Users Mailing List user@struts.apache.org I have customerAtction which customer dataObject. Customer data object contains arraylist of orders. If I have 10 order placed from ui then struts 2 works fine and i get 10 orders populated in my customer object input type='hidden' name ='customer.orders[0].item' value ='someItem'/// First item to input type='hidden' name ='customer.orders[9].item' value ='someItem'/// Tenth item But if i have 11 items i cet customer object with 11 orders with first and last order correctly filled but inbetween 9 orders are correctly filled input type='hidden' name ='customer.orders[0].item' value ='someItem'/// First item to input type='hidden' name ='customer.orders[10].item' value ='someItem'/// Tenth item Some how param interceptor is not working fine for more than 10 items. I am not sure what i am missing here? -- e: davelnew...@gmail.com m: 908-380-8699 s: davelnewton_skype t: @dave_newton https://twitter.com/dave_newton b: Bucky Bits http://buckybits.blogspot.com/ g: davelnewton https://github.com/davelnewton so: Dave Newton http://stackoverflow.com/users/438992/dave-newton
Re: Token Session Interceptor and back button
You need to have browser caching disabled on your first page: response.setHeader(Cache-Control, no-cache, no-store, must-revalidate); // HTTP 1.1 response.setHeader(Pragma, no-cache); // HTTP 1.0 response.setDateHeader(Expires, 0); // Proxies On Fri, Dec 6, 2013 at 5:03 AM, Miguel Almeida mig...@almeida.at wrote: Paul, I was thinking about this example...what did you have in mind as a way to achieve that, tough, i.e., that a browser back refreshes the page? I can only see some javascript method/hack for that. Were you thinking of something else? Miguel On Thu, 2013-12-05 at 14:59 -0600, Paul Benedict wrote: Make sure your back-button action refreshes the page. You can't reuse a token from the browser's cache. It needs to regenerated. On Thu, Dec 5, 2013 at 12:39 PM, semog12 semog1epi...@gmail.com wrote: Hi, I am using the token session interceptor for a form and I have this situation: 1) I am in the form page; 2) I leave the form page; 3) Go back to the form page by the back button; 4) Submit the form; And of course the form is not submitted and the token returns invalid.token but do not adds no actionError. It will not be interesting to add an action error? Ok, I can resend to a page with a message but I already have a error page that presents the action errors when necessary. Thanks, André Gomes -- View this message in context: http://struts.1045723.n5.nabble.com/Token-Session-Interceptor-and-back-button-tp5714861.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Cheers, Paul
Re: param interceptor is not working fine if list contain more than 10 items?
Guys any suggestion/ideas.Really ,I am not getting whats going on here. On Fri, Dec 6, 2013 at 10:21 PM, Mohit Gupta motgu...@gmail.com wrote: Dave. Here is brief about action class *CustomerOrderAction contains * private Customer customer; // getters and setters * Customer contains* private ListShopItem orders = new ArrayListShopItem(); * ShopItem contains* public int item = -1; // getters and setters On Fri, Dec 6, 2013 at 10:09 PM, Dave Newton davelnew...@gmail.comwrote: How is the property defined in the action? On Fri, Dec 6, 2013 at 11:35 AM, Mohit Gupta motgu...@gmail.com wrote: correcting typo errors in my previous post I have customerAtction which customer dataObject. Customer data object contains arraylist of orders. If I have 10 order placed from ui then struts 2 works fine and i get 10 orders populated in my customer object input type='hidden' name ='customer.orders[0].item' value ='someItem'/// First item to input type='hidden' name ='customer.orders[9].item' value ='someItem'/// Tenth item But if i have 11 items i cet customer object with 11 orders with first and last order correctly filled but inbetween 9 orders are not correctly filled. In between 9 values are filled as null object input type='hidden' name ='customer.orders[0].item' value ='someItem'/// First item to input type='hidden' name ='customer.orders[10].item' value ='someItem'/// eleventh item Some how param interceptor is not working fine for more than 10 items. I am not sure what i am missing here? -- Forwarded message -- From: Mohit Gupta motgu...@gmail.com Date: Fri, Dec 6, 2013 at 9:34 PM Subject: param interceptor is not working fine if list contain more than 10 items? To: Struts Users Mailing List user@struts.apache.org I have customerAtction which customer dataObject. Customer data object contains arraylist of orders. If I have 10 order placed from ui then struts 2 works fine and i get 10 orders populated in my customer object input type='hidden' name ='customer.orders[0].item' value ='someItem'/// First item to input type='hidden' name ='customer.orders[9].item' value ='someItem'/// Tenth item But if i have 11 items i cet customer object with 11 orders with first and last order correctly filled but inbetween 9 orders are correctly filled input type='hidden' name ='customer.orders[0].item' value ='someItem'/// First item to input type='hidden' name ='customer.orders[10].item' value ='someItem'/// Tenth item Some how param interceptor is not working fine for more than 10 items. I am not sure what i am missing here? -- e: davelnew...@gmail.com m: 908-380-8699 s: davelnewton_skype t: @dave_newton https://twitter.com/dave_newton b: Bucky Bits http://buckybits.blogspot.com/ g: davelnewton https://github.com/davelnewton so: Dave Newton http://stackoverflow.com/users/438992/dave-newton