<c:redirect>的简单使用

来源:互联网 发布:抢小米神器软件 编辑:程序博客网 时间:2024/06/07 07:57

属性

url 目标URL
context 紧接着一个本地网络应用程序的名称

demo

<%@ page language="java" contentType="text/html; charset=UTF-8"   pageEncoding="UTF-8"%><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %><html><head><title>c:redirect 简单</title></head><body><c:redirect url="http://www.baidu.com"/></body></html>



原创粉丝点击