JavaWeb实验 JSP 基本语法(续
实验目的
- 掌握JSP基本语法;
- 掌握JSP常见用法。
实验内容
【1】创建index.jsp、first.jsp和second.jsp三个jsp文件,页面的内容分别显示“This is my JSP page of index.jsp.”、“This is my JSP page of first.jsp.”和“This is my JSP page of second.jsp.”。然后在index.jsp中,通过include方法引进first.jsp和second.jsp两个文件,最终,访问index.jsp显示为下图的内容。
test This is my JSP page of index.jsp.
【2】利用JSP的传值机制,在URL输入两个参数的值,并计算两值之间所有数字的和。
Chat room
The End