Symptom:
1. When a parameter is passed to the modal window, the session (...) is displayed for the first time (..) This value. When the session is assigned another value, the modal window returns the previous value.
2. During the development process, the pages opened in the modal window will be automatically cached, making the program unable to enter the breakpoint, causing great trouble for program debugging.
Solution 1:
Clear cache on the current page,
Add
<% @ Outputcache duration = "1" varybyparam = "NONE" %>
You can disable the current page cache.
Solution 2:
Add a random number to the call connection so that the modal window is considered to be a different connection.
Example:
VaR A = Window. showmodaldialog ("basedetail_ctl.jsp? Datetime = "+ new date (). tostring () + "& year =" + stryear + "& month =" + strmonth, "", "status: No; resizable: Yes; dialogheight: pixel PX; dialogwidth: 460px; unadorne: yes ");
Datetime = "+ new date (). tostring () is used to add a random number to the call connection so that the modal window is considered as a different connection.