New discovery about the web dialog

xiaoxiao2021-03-06  85

Write a B / S system today and find a small problem, take everyone to see.

There are three JSP web pages A.jsp, B.Jsp and C.Jsp. Write session: Request.GetSession.SetAttribute ("abc", "a"); in A.jsp uses Window.ShowModalDialog in A.JSP "B.JSP", "GHGL_SP", "Status: no; resizable: no") Opens B.JSP, can take Request.GetSession.GetaTribute ("abc") in B.JSP; in B.JSP Open C.JSP with Window.open ("C.JSP"), you can't get the session in C.JSP. Use Window.NaviGate ("C.JSP") to open on this page, you can get it.

Everyone has encountered it to be careful!!

转载请注明原文地址:https://www.9cbs.com/read-125158.html

New Post(0)