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