<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:url var="url" value="http://search.naver.com/search.naver">
<c:param name="where" value="nextearch" />
<c:param name="query" value="iphone" />
<c:param name="sm" value="top_hty" />
<c:param name="fbm" value="1" />
</c:url>
<c:redirect url="${url}" />
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>JSTL 코어 라이브러리 : redirect 실습</title>
</head>
<body>
생성된 url : ${url }<br>
</body>
</html>
'JAVA > JSP & Servlet' 카테고리의 다른 글
JSTL [Formatting 라이브러리] : formatData[pattern] (0) | 2013.03.26 |
---|---|
JSTL [Formatting 라이브러리] : formatData (0) | 2013.03.26 |
JSTL [Core 라이브러리] : import / url (0) | 2013.03.26 |
JSTL [Core 라이브러리] : forToken (0) | 2013.03.26 |
JSTL [Core 라이브러리] : forEach -배열출력- [items] (0) | 2013.03.26 |