jsp tag:
<jsp:include>
<jsp:forward> Implement request forwarding
<jsp:param> Add parameters to the above
EL expression:
1. Get variable data
<%String name="Tao Shihan";pageContext.setAttribute("name",name);%>Hello, ${name}
2. Get array data
<%String[] names={"Tao Shihan","Zhang San"};pageContext.setAttribute("names",names);%>Hello, ${names[0]}
3. Obtain collection data
<%List<String> names=new ArrayList<String>();names.add("Tao Shihan");names.add("Zhang San");pageContext.setAttribute("names",names);%>Hello, ${names[1]}
<%Map<String,String> names=new HashMap<String,String>();names.put("name","Tao Shihan");pageContext.setAttribute("names",names);%>Hello, ${names['name']} ${names.name }
4. Get javabean data
Note that the package is to be exported, and the expression automatically adjusts the get method
<%Person person=new Person();person.setName("taoshihan");pageContext.setAttribute("person",person);%>Hello, ${person.name }
Path: ${pageContext.request.contextPath } == <%=request.getContextPath() %>