달력

3

« 2024/3 »

  • 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
2008. 10. 3. 09:42

ASP.NET, ASP.NET MVC, ASP.NET Dynamic Data 공부하는 것2008. 10. 3. 09:42


스컷 구슬리의 Blog를 가보니 그는 정기적으로 자신의 웹 사이트 북마크들을 공개하고 있는 것 같다. ASP.NET, ASP.NET MVC, ASP.NET Dynamic Data에 대한 북마크인데 참고를 하면 기술흐름과 추이들을 손쉽게 이해할 수 있을 것 같다.

[ASP.NET]

 Bulk Inserting Data with the ListView Control: Matt Berseth continues his awesome posts with one that shows how to handle bulk-editing of data using the ASP.NET ListView control in .NET 3.5

Amazon의 Cloud Computing을 위해서 MS의 서버 제품군들을 이용하고 있는데, Amazon의 Open webservice제고 하기 위한 EC2 서버스 구축과 관련된 내용을 볼수 있다.

Using ASP.NET WebForms, MVC and Dynamic Data in a Single Application: Scott Hanselman has a nice post that demonstrates how you can have a single ASP.NET application that uses ASP.NET WebForms, MVC, WebServices and Dynamic Data.  You have the flexibility to mix and match them however you want, which allows you to always use the right tool depending on the specific job.

 ASP.NET WebForms, MVC, WebServices and Dynamic Data를 이용하여 Application을 작성하는 것에 대하여 설명하고 있다. Microsoft는 개발자가 WebForm과 MVC를 이용하여 개발 할 수 있도록 환경을 만들어 주는데, 이 두가지를 어떻게 적절히 사용할 수 있는지에 대하여 설명해 주고 있다.

 Modifying Data with the ListView's EditItemTemplate: Matt Berseth has a great post that talks about how to use the ASP.NET 3.5 ListView control to enable in-place editing scenarios - with total html markup control.

List View를 어떻게 수정해서 사용할수 있을지에 대한 샘플 코드를 통해서 설며앻주고 있다. 이는 서버 사이드에서 실행되는 코드로 요즘에 많이 알려져 있는 Javascript Framework에서 제공하는 것과는 다르다.

4 New Grouping Grid Skins: Vista, Bold, Win2k3 and Soft: Matt Berseth has another nice post that demonstrates how to skin the ASP.NET ListView control to enable some sweet data grouping scenarios.

새로운 4개의 그리드 Skin에 대한 이미지와 컨트롤의 사용에 대해서 설명해 준다.

 Unlocking and Approving User Accounts: Scott Mitchell posts another in his great series of articles on ASP.NET security (click here for all the articles in the series).  This article talks about how you can setup administration pages that allow admins to lock out and approve user accounts using the ASP.NET Membership system.

Admin 관리자가 사용자 계정을 사용유무를 관리하기 위한 페이지에 대해 이야기 하고 있다.
 Adding OpenID to you website in conjunction to ASP.NET Membership: Dan Hounshell has a nice article that discusses how to add OpenID authentication support to your web-site, and use it in conjunction to ASP.NET's built-in membership system.

Open ID 계정의 사용에 대한 설명과 소스 코드가 있다.

[ASP.NET MVC]
 MVC Membership with Preview 5: Troy Goode posts an update of his popular MVC Membership template that works with ASP.NET MVC Preview 5.  It provides a set of administration pages you can use for user/role management, as well as adds support for OpenID and Windows LiveID.
 MVC Flickr Xplorer: Mehfuz Hossain has a cool ASP.NET MVC sample application posted that enables a nice picture explorer for FlickR photos.

.NET MVC를 이용한 Sample 코드를 소개하고 있는데, Flicker의 사진 이미지를 볼수 있는 프로그램을 .NET MVE Preview3를 이용해서 만들었다.

[ASP.NET Dynamic Data]
 Simple 5 Table Northwind Example: Matt Berseth kicks off his ASP.NET Dynamic Data tutorial series with a nice post that shows how to build a simple 5 table application using ASP.NET Dynamic Data with .NET 3.5 SP1

Northwind 테이블을 이용하여 Dynanic Data 사용을 위한 예제들을 담고 있다.
 Dynamic Data And Custom Metadata Providers: Matt continues the series and covers the MetadataType attribute, and how you can use it to annotate your entities with additional metadata.
 Dynamic Menu for your Dynamic Data: Matt continues and covers how to add a data-driven menu to the site

2단 메뉴를 구성시 Dynamic Data를  어떻게 이용할 것인가에 대해 설명해 주고 있다.
 Customizing the Delete Confirmation Dialog: Matt continues and demonstrates how to build a nice UI experience when deleting records in a dynamic data application
 Experimenting with YUI's DataTable and DataSource Controls: Matt experiments with how to use client-side AJAX components together with dynamic data.

YUI의 테이블과 Dynamic Data를 같이 사용하는 방법에 대한 예제와 설명을 담고 있다.








:
Posted by 행복상자

Spring MVC는 Spring Framework중에서 웹 개발을 쉽게 할 수 있도록 도와준다.
국내에서 출판된 책들은 Source를 제공하기는 하지만, 책을 보고 Source를 실행하려고 하면 잘 동작하지 않는다. 물론 손으로 직접 쳐서 입력할때 오타가 있기는 하지만, 서버의 설정과 환경 구성에 대해서 충분하게 설명해 주지 못하기 때문이다.

이를 위해, www.springframework.org에서는 제공하고 있는 Spring MVC를 위해서, Developing a Spring Framework MVC application step-by-step
라는 제목으로 Spring MVC개발에 대해 설명하고 있다. 2003년에 작성된 것과 올 2008년에 작성된 것이 있다.

예제는 초보자를 위해서, 개발 환경 설정과, Ant의 Build.xml 만들기와 사용법등을 부과적으로 설명하고 있다. Ant를 사용하는 법도 부과적으로 얻을 수 있다. 이에 대한 목차는 다음과 같다.(2003년도 작성)

[목차] 
Part 1 – Basic Application and Environment Setup
Part 2 – Developing and Configuring the Application
Part 3 – Adding Unit Tests and a Form to the Application
Part 4 – Implementing Database Persistence

위는 2003년도에 작성된 예제와 Sample이고 tex t위주의 설명으로 되어 있지만,  MVC개발을 위한  설정 XML 파일을 어떻게 작성해야 하는지, 그리고 Dispatcher와 Controller 그리고, View에 대한 코드들에 대해 쉽게 이해할 수 있도록 예제와 더불어 쉽게 설명하고 있다.

그리고, 2008년도에 작성된 Spring MVC step-by-step의 목차는 다음과 같은데, 설명과 함께 캡처한 이미지를 제공하여 설명을 돕고 있다.

[목차]
 

Overview
1. What's covered
2. Prerequisite software
3. The application we are building
1. Basic Application and Environment Setup
1.1. Create the project directory structure
1.2. Create 'index.jsp'
1.3. Deploy the application to Tomcat
1.4. Check the application works
1.5. Download the Spring Framework
1.6. Modify 'web.xml' in the 'WEB-INF' directory
1.7. Copy libraries to 'WEB-INF/lib'
1.8. Create the Controller
1.9. Write a test for the Controller
1.10. Create the View
1.11. Compile and deploy the application
1.12. Try out the application
1.13. Summary
2. Developing and Configuring the Views and the Controller
2.1. Configure JSTL and add JSP header file
2.2. Improve the controller
2.3. Decouple the view from the controller
2.4. Summary
3. Developing the Business Logic
3.1. Review the business case of the Inventory Management System
3.2. Add some classes for business logic
3.3. Summary
4. Developing the Web Interface
4.1. Add reference to business logic in the controller
4.2. Modify the view to display business data and add support for message bundle
4.3. Add some test data to automatically populate some business objects
4.4. Add the message bundle and a 'clean' target to 'build.xml'
4.5. Adding a form
4.6. Adding a form controller
4.7. Summary
5. Implementing Database Persistence
5.1. Create database startup script
5.2. Create table and test data scripts
5.3. Add Ant tasks to run scripts and load test data
5.4. Create a Data Access Object (DAO) implementation for JDBC
5.5. Implement tests for JDBC DAO implementation
5.6. Summary
6. Integrating the Web Application with the Persistence Layer
6.1. Modify service layer
6.2. Fix the failing tests
6.3. Create new application context for service layer configuration
6.4. Add transaction and connection pool configuration to application context
6.5. Final test of the complete application
6.6. Summary
A. Build Scripts


위의 순서대로 예제를 실행해 보았는데, 어렵지 않게 스프링 MVC에 대해 이해할 수 있었고, 개발시 환경 구성과 설정방법들에 배울 수 있었다.



:
Posted by 행복상자
2008. 4. 21. 22:35

ASP.NET MVC의 Roadmap 공부하는 것2008. 4. 21. 22:35

ASP.NET의 로드맵이 CodeFlex에 올라와 있어서, 소개한다.
상세한 내용은 없고, 그냥 참고할 만한 내용이다.

  • Controller Class Refactorings to improve testability
  • Ajax Support
  • Security/Authorization Model
  • Refactor TempData Dictionary for improved testability
  • Helper Methods Improvements
  • Reusable Component Model
  • Silverlight Helpers
  • Various other refactorings and bug fixes

  •  

    :
    Posted by 행복상자
    2008. 3. 29. 20:31

    ASP.NET MVC & Request Flow 좋아하는 것2008. 3. 29. 20:31

    MVC(Model-View-Controller) 패턴은 일반적으로 UI가 있는 Application에서 사용되는 패턴이다. Data와 UI를 분리하기 위한 노력들은 코드의 재 사용성을 높이고, 시스템 변경시 유연하게 수정이 가능하게 해 주므로 다양한 방법으로 Application에 적용되어 왔다.

    ASP.NET MVC

         - Model
          : 일반적으로 Application의 주 로직을 담당하고나, DB를 이용하여, Application의
            데이타를 관리하거나, Business 로직을 포함하고 있다.  
        - View
        
    : 사용자의 Interface와 연관된 부분으로, Model 데이터를 보여주거나 User의
             입력 Data를 가졍온다.
        - Controller
        
    : User와 Interaction하고 Model과 View를 통해 원하는 결과를 얻을 수 있도록
           동작을 결정한다. 결과적으로 View를 통해 Model의 내용을 볼수 있도록 도와준다.


    ASP.NET의 MVC Framework도 여타의 다른 MVC프레임워크와 대동 소이하다. 단지 Microsoft에서 공식적으로 지원한다는 것이 다를 뿐이다. 이는 분명 실행 코드와 HTML을 분리해 줘서, 코드의 가독성을 높이고, 개발 속도를 올리는데 크게 기여할 것이다.



    images/mvc.jpg
    - ASP.NET MVC Framework는 TDD를 가능하게 도와 준다. 그리고 MOC 테스트를 위한 클래스와 모듈을 Framework에 기본 탑재함으로써, 좀더 유연하게 개발을 할 수 있도록 도와 준다. 보통 테스트를 위해 새로 만들 모듀을 Http Server에 올리고 내리는 작업은 시간을 죽이는 작업들이다. 이는 Framework이 컴포넌트들 대부분이 Interface기반으로 되어 있어서 가능한 점이다.
    - 또한, ASP.NET MVC Framework는 확장 가능하고, Pluggable 하다. 이는 각 모듈들이 다른 부분에 영향없이 상용 모듈을 사용할 수 있도록 도와준다.
    - SEO(Searc Engin Optimization)와 REST를 지원한다.
    - ViewStat와 Postback를 더 이상 사용할 필요가 없다.

    Request Flow
    일반적으로 ASP.NET의 wep form Applicaton들은 URLs과 Logical Disk 상의 파일들가 Mapping해서 사용하도록 한다. 그러나 ASP.NET MVC Framwork는 URLs와 Controller를 연계하여 사용한다. 그래서 Application이 시작할 때, Url Route Rule을 등록하고, 이 Routiog Handler는 Controller에 연계되어 요청이 있을시 사용된다.

    images/request.jpg




    참조 링크: ASP.NET MVC Framework Part 1

    :
    Posted by 행복상자