Action tags | Description |
---|---|
<jsp:include> | Includes a file at the time when the page is requested. |
<jsp:useBean> | Finds the object of Java bean from given scope or create a new object. |
<jsp:setProperty> | Sets the property of a JavaBean object. |
<jsp:getProperty> | Prints the property of the Java bean object. |
<jsp:forward> | Forwards the request and response to another resource. |
<jsp:plugin> | It is used when there is a need of a plugin to run a Bean class. |
<jsp:param> | Sets the parameter value to the request. It is used in forward and include mostly. |
<jsp:fallback> | Supplies alternate text if Java applet is unavailable on the client. |
<jsp:element> | Defines XML element directly. |
//welcome.jsp
<p>
Today's date: <%= new java.util.Date()%>
</p>
//demo.jsp
<html>
<head>
<title>JSP include Action Tag</title>
</head>
<body>
<h3>JSP page: Demo Include</h3>
<jsp:include page = "welcome.jsp" flush="false" />
</body>
</html>
<html>
<head>
<title>JSP Forward Action Tag</title>
</head>
<body>
<h2>JSP page: Demo forward</h2>
<jsp:forward page="welcome.jsp" />
</body>
</html>