I printed the variable correctly which i set in the execute method before returning back to the same jsp form from the execute method. Assume I entered values in the form 3 times(for testing) and clicked for validation. During the second time, i found that variable showNewView is getting the value that was set in the previuos time in the execute method. For example, assume the date format entered is correct for the first two times and wrong for the third time. I should get the variable showNewView as true for the first two times and false for the third time. Instead of that, first time, alert window showed " showNewView value is null" . second time it showed " showNewView value is true" and in the the third time, it showed the previous value. That is " showNewView value is true" what is the reason for this?
[ January 10, 2007: Message edited by: Bear Bibeault ]
Thanks for the answer. it was really informative and I read the article suggested by you . Still i am not getting a solution for implementing the same.
I have two struts action classes. If I use second action class, the details from the first jsp page ( or action form) is not available since I use a function showInNewWindow( strUrl ); which opens a new window. How can I solve the problem?