JSP Tags:
<jsp:include>
<jsp:forward> Implementation Request Forwarding
<jsp:param> to add parameters to the above
El expression:
1. Get Variable data
<%
String name= "Taoshan";
Pagecontext.setattribute ("name", name);
%>
Hello, ${name}
2. Get Array data
<%
string[] names={"Taoshan", "John"};
Pagecontext.setattribute ("names", names);
%>
Hello, ${names[0]}
3. Get Collection data
<%
list<string> names=new arraylist<string> ();
Names.add ("Taoshan");
Names.add ("John");
Pagecontext.setattribute ("names", names);
%>
Hello, ${names[1]}
<%
map<string,string> names=new hashmap<string,string> ();
Names.put ("name", "Taoshan");
Pagecontext.setattribute ("names", names);
%>
Hello, ${names[' name ']} ${names.name}
4. Get JavaBean Data
Note to guide the package, the expression automatically adjust Get method
<% person
person=new person ();
Person.setname ("Taoshihan");
Pagecontext.setattribute ("person", person);
%>
Hello, ${person.name}
Path: ${pagecontext.request.contextpath} = = <%=request.getcontextpath ()%>