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