摘要:
<jsp:getproperty>
获取bean的属性值,用于显示在页面中
jsp 语法
<jsp:getproperty name="beaninstancename" property="propertyname" />
例子
<jsp:usebean id="calendar" scope="page" class=......
摘要:
<jsp:forward>
重定向一个html文件,jsp文件,或者是一个程序段.
jsp 语法
<jsp:forward page={"relativeurl" | "<%= expression %>"} />
or
<jsp:forward page={"relativeurl" | "<%= expre......
JSP语法(6)Include 指命
include 指命
在jsp中包含一个静态的文件,同时解析这个文件中的jsp语句.
jsp 语法
<%@ include file="relativeurl" %>
例子
include.jsp:
<html>
<head><title>an include test</title></head>
<body bgcolor="white">
<font color="blue">
the current date and time are
<%@ include file="date.jsp" %>
</font>
</body>
</html>
date.jsp:
<%@ page import="java.util.*" %>
<%= (new java.util.date() ).tolocalestring() %>
displays in the page:
the current date and time are
aug 30, 1999 2:38:40
描述
<%@include %>指命将会在jsp编译时插入一个包含文本或代码的文件,当你使用<%@ include %>指命时,这个包含的过程就当是静态的....
下一页 摘要:
page 指令
定义jsp文件中的全局属性.
jsp 语法
<%@ page
[ language="java" ]
[ extends="package.class" ]
[ import="{package.class | package.*}, ..." ]
[ session="true | false" ]
[ buffer="n......