일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- JSON
- appspresso
- Android
- GPS
- 선택적조인
- jsr 296
- MFC
- rowspan
- dock
- jQuery
- iBATIS
- 가우스
- PLSQL
- Google Map
- Eclipse
- Spring
- 전자정부프레임워크
- JDOM
- phonegap
- node.js
- Struts
- sencha touch
- PHP
- MySQL
- ibsheet
- Ajax
- WebLogic
- swingx
- tomcat
- oracle
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");
?>