일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- rowspan
- jsr 296
- dock
- JDOM
- iBATIS
- oracle
- Spring
- Ajax
- 가우스
- appspresso
- GPS
- tomcat
- 전자정부프레임워크
- MFC
- Eclipse
- WebLogic
- swingx
- ibsheet
- Struts
- Google Map
- phonegap
- Android
- JSON
- MySQL
- PHP
- PLSQL
- 선택적조인
- node.js
- jQuery
- sencha touch
Archives
- Today
- Total
Where The Streets Have No Name
HTTP status code 처리 본문
Example 1
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
…
response.sendError(response.SC_MOVED_PERMANENTLY, "/newUserLogin.do");
}
Example 2
In Active Server Page (ASP) with VBScript, developers can use Response.Redirect
.
Response.Redirect "newUserLogin.asp"
or
Response.Redirect("newUserLogin.asp")
The code below is a more complete example with a specific HTTP status code.
Response.Clear
Response.Status = 301
Response.AddHeader "Location", "newUserLogin.asp"
Response.Flush
Response.End
Example 3
<?php
header("HTTP/1.1 301 Moved Permanently);
header("Location: http://www.example.com/newUserLogin.php");
?>