jsp page scope basics

*, alert pops up under jsp

//out.println("<script language=javascript>");
//out.print("alert('The ssoname is :"+ssoname+"');");
//out.println("</script>");

 

*, pass values ​​between jsp and java

Session storage value under java
request.getSession().setAttribute("ssousername",ssoname);

Take the values ​​of the four major fields under jsp
<input type="hidden" id="ssousername" value="${sessionScope.ssousername }">

 

*, jsp takes the initialization parameters in web.xml

The four major domains of jsp get web.xml parameters, and then the four major scopes in el take parameters, which are used in js

 

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326717071&siteId=291194637