Re: child window reseting the values of parent window

2012-01-29 Thread Arpan
Hi Piyush, Thanks for the response. I have just looked at the hidden field values and I have found the parent and child generating separate token values. Even if I just open my child window and close it immediately, the parent form doesn't get submitted after that and gives error of duplicate sub

Re: child window reseting the values of parent window

2012-01-25 Thread Piyush Kumar
When I mentioned "page source" in my last email, I meant the HTML source generated on the client side which you can see in the browser (right click the page and click view page source). Thanks and regards, Piyush On Thu, Jan 26, 2012 at 12:10 PM, Piyush Kumar wrote: > Please read my last reply a

Re: child window reseting the values of parent window

2012-01-25 Thread Piyush Kumar
Please read my last reply and note that the hidden element may also look like - in your JSP which eventually will be converted to the HTML wrote: > There must be following in the forms on the both window. > > name="<%=org.apache.struts.taglib.html.Constants.TOKEN_KEY%>" > value=""> > > When t

Re: child window reseting the values of parent window

2012-01-25 Thread Piyush Kumar
There must be following in the forms on the both window. "/>"> When the pop up appears, find the above described element in the page source, you will find that on both the page such elements are identical, which is not desirable. For every request new token is generated and stored as a session at

Re: child window reseting the values of parent window

2012-01-25 Thread Arpan
Actually what is happening that when my child window submits, it has a specific struts token. When I close the child and try to submit the parent window, it shows that the form has already been submitted. So can any one know, how to solve this problem. Thanks On Mon, Jan 23, 2012 at 12:56 AM,

Re: child window reseting the values of parent window

2012-01-22 Thread Arpan
Hi Piyush, If I close my child window and try to submit the parent one, submit button doesn't work. There's no JS error shown in the browser. But if I reload the parent window,submit button works . Thanks On Sun, Jan 22, 2012 at 1:58 PM, Piyush Kumar wrote: > why are you reloading the parent w

Re: child window reseting the values of parent window

2012-01-22 Thread Piyush Kumar
why are you reloading the parent window on child window close. i think your problem can be solved with pure javascript. please describe it more. On Sat, Jan 21, 2012 at 9:52 PM, Arpan wrote: > Hi, > > My requirement is like as follows: > > User can edit fields in a page. This page will have a li