티스토리 뷰
protected void Application_Error(object sender, EventArgs e)
{
//Exception exception = Server.GetLastError();
//Response.Clear();
//Server.ClearError();
//RouteData routeData = new RouteData();
//routeData.Values.Add("controller", "Home");
//routeData.Values.Add("action", "Test");
////routeData.Values.Add("exception", exception);
//if (exception.GetType() == typeof(HttpException))
//{
// //routeData.Values.Add("statusCode", ((HttpException)exception).GetHttpCode());
//}
//else
//{
// //routeData.Values.Add("statusCode", 500);
//}
//IController controller = new HomeController();
//controller.Execute(new RequestContext(new HttpContextWrapper(Context), routeData));
//Exception ex = Server.GetLastError();
//Exception baseEx = ex.GetBaseException();
//HttpException httpEx = baseEx as HttpException;
//if (httpEx != null)
//{
// int eventCode = httpEx.WebEventCode;
// HttpContext context = ((HttpApplication)sender).Context;
// int result = context.Request.ContentLength;
// if (eventCode.Equals(3004))
// {
// //Exception exception = Server.GetLastError();
// Response.Clear();
// Server.ClearError();
// RouteData routeData = new RouteData();
// routeData.Values.Add("controller", "Home");
// routeData.Values.Add("action", "Test");
// ////routeData.Values.Add("exception", exception);
// //if (exception.GetType() == typeof(HttpException))
// //{
// // //routeData.Values.Add("statusCode", ((HttpException)exception).GetHttpCode());
// //}
// //else
// //{
// // //routeData.Values.Add("statusCode", 500);
// //}
// IController controller = new HomeController();
// controller.Execute(new RequestContext(new HttpContextWrapper(Context), routeData));
// return;
// }
//}
//Response.Clear();
//Server.ClearError();
//string path = Request.Path;
//Context.RewritePath(string.Format("~/Home/{0}", "Test"),false);
//IHttpHandler httpHandler = new MvcHttpHandler();
//httpHandler.ProcessRequest(Context);
//Context.RewritePath(path, false);
//RouteData routeData = new RouteData();
//routeData.Values.Add("action", "HttpError404");
//Server.Transfer(this.Request.Url.LocalPath + "/Home/Test", false);
// Code that runs when an unhandled error occurs
// Get the exception object.
//Exception exc = Server.GetLastError();
//HttpException ex = Server.GetLastError() as HttpException;
//HttpException httpEx = Server.GetLastError().GetBaseException() as HttpException;
//int eventCode = httpEx.WebEventCode;
//HttpContext context = ((HttpApplication)sender).Context;
//int result = context.Request.ContentLength;
//Exception message = httpEx.GetBaseException().InnerException;
//if (httpEx != null)
//{
// int result = httpEx.GetHttpCode();
//}
}
- Total
- Today
- Yesterday
- 특정 문자를 기준으로 자르기
- jstl(java standard tag library)
- 메이븐(maven)
- jstl(java standard tag library)-core
- 스프링 시큐리티(spring security)
- In App Purchase
- React
- MainActor
- java-개발 환경 설정하기
- 문자 자르기
- .submit()
- System.Diagnostics
- error-java
- java web-mvc
- 스프링 시큐리티(spring security)-http basic 인증
- 제품 등록
- REST API
- nl2br
- 스프링 프레임워크(spring framework)
- 진수 변환
- java.sql
- 람다식(lambda expression)
- 표현 언어(expression language)
- java 키워드 정리
- 인텔리제이(intellij)
- await
- docker
- 스프링 프레임워크(spring framewordk)
- system.io
- jsp 오픈 소스
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |