TeamBlog For SI

RPNetworks SI 개발자를 위한 블로그

SharePoint 에서 Office 문서 열때 인증창 안뜨게..

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\1042\CORE.JS
폴더의 해당 파일을 열고.(영문판이면 1033 폴더)

function DispDocItemEx(ele, fTransformServiceOn, fShouldTransformExtension, fTransformHandleUrl, strProgId)

위 함수를 찾는다.

해당 함수 내용에 아래내용 추가

var _ele; 
 
if (_ele = ele.toString()){
 
    if (_ele_ext = _ele.substring(_ele.lastIndexOf('.')+1).toLowerCase()){
 
        /* list of office docs */

   var arr_office_ext = newArray('doc','xls','dot','dotx','dotm','bmp','gif','jpeg','jpg','csv','docm','docx','docmhtml',

                                              'docxml','dothtml','gcsx','ico','mdb','mde','mdn','png','pot','pothtml','potm','potx','pps', 'ppsx',

                                              'ppt','pptm','pptx','pub','potm','ppam','ppsm','xlb','xlc','xls','xlsx','xlsm','xlt','xltm','xlsb','xlam','xltx','xlw','xlxml');

        var _i;
        var b_office_doc = false;
 
        /* check for ext in array */
        for (_i=0; _i < arr_office_ext.length; _i++) {
            if (arr_office_ext[_i] === _ele_ext){
                //alert(_ele);
                b_office_doc = true;
            break;
            }
        }
 
        /* send only if office ext */
        if (b_office_doc){
 
            /* Open the doc via download.aspx (supress sp editing) */
                 STSNavigate(ctx.HttpRoot + '/_layouts/download.aspx?SourceUrl=' + _ele);
 
            
/* Kill the “regular” sp handling of the doc (edit mode) 
               onClick(true) and simply download the doc. */

            return false;
        }        
    }
}

 



Categories: sharepoint
Permalink | Comments (0) | Post RSSRSS comment feed

SVN Configuration

This tutorial assumes you have a basic idea what svn server is, and assumes that you already know how to setup svn server. (like create repository, manage account, etc..)

1. Ignore every post written in the past.
Mac OS X 10.6.4 (Snow Leopard) have svn server by default.

You just don't know where to find it. Because, it's not showing anywhere on the mac, like system preferences, applications..

2. So, Let's dive into it.
Open terminal window. (You do have a administrator's privilege.)
To make it a simple process, log in to your mac using your administrator's account.

mkdir /svn_repo
svnadmin create /svn_repo
At this point, you have to configure your svn server setting, like account setting, etc. 
svnserve -d -r /svn_repo
Well, sometimes you may have typo in terminal.
So, how to stop "svnserve" in daemon mode? (svnserve -d option means daemon mode).
ps auxww | fgrep svnserve
Then the number in the second column is the process id, then I can do: 
kill  (without the <> brackets) 
and in the worst case (e.g. svnserve won't stop after many minutes): 
kill -9 
* how to stop "svnserve" in daemon mode article comes from http://svn.haxx.se/users/archive-2005-09/0800.shtml
Now, svn server is started. You can connect using xcode scm menu at client side.
Or, in terminal you can type below to check svn server is working without errors.
svn info svn://localhost
svn info svn://127.0.0.1
svn info svn://<your real ip address> --> without the <> brackets.
Whatever command will fine.

Finally, if you reboot your mac, svnserver will not automatically start up at a boot time.



Categories: ETC Infomation | Mac
Permalink | Comments (0) | Post RSSRSS comment feed

spring MVC 구조

. 스프링 MVC 란?
-. 스프링이 직접 제공하는 서블릿 기반의 MVC 프레임워크이다. 스프링 서블릿 또는 스프링 MVC라고 부른다.
프론트 컨트롤러 역할을 하는 DispatcherServlet을 핵심 엔진으로 사용한다. 스프링이 제공하는 AOP, 트렌젝션 처리,
DI 등의 기능을 그대로 사용하면서 MVC 패턴의 기반하여 웹 어플리케이션을 개발할 수 있다.

2. 스프링 MVC의 구성 및 실행 흐름
-. 컨트롤러의 역할을 하는 DispatcherServlet을 비롯하여 스프링 MVC의 주요 구성 요소는 아래와 같다.
DispatcherServlet : 클라이언트의 요청을 전달받는다. Controller에게 클라이언트의 요청을 전달하고, Controller가 리턴한 결과값을 View에 전달하여 알맞은 응답을 생성하도록 한다.
HandlerMapping : 클라이언트의 요청 URL을 어떤 Controller가 처리할지를 결정한다.
Controller : 클라이언트의 요청을 처리한 뒤, 그 결과를 DispatcherServlet에 알려준다. 스트러츠의 Action과 동일한 역할을 수행한다.
ViewResolver: Commander의 처리 결과를 보여줄 View를 결정한다.
View : Commander의 처리 결과를 보여줄 응답을 생성한다
각 흐름을 간략하게 정리하면 다음과 같다. -.클라이언트의 요청이 DispatcherServlet에 전달된다.
-. DispatcherServlet은 HandlerMapping을 사용하여 클라이언트의 요청이 전달될 Controller 객체를 구한다.
-. DispatcherServlet은 Controller 객체의 handleRequest() 메소드를 호출하여 클라이언트의 요청을 처리한다.
-. Controller.handleRequest() 메소드는 처리 결과 정보를 담은 ModelAndView 객체를 리턴한다.
-. DispatcherServlet은 ViewResolver로부터 처리 결과를 보여줄 View를 구한다.
-. View는 클라이언트에 전송할 응답을 생성한다.

Categories: JAVA | Programming
Permalink | Comments (0) | Post RSSRSS comment feed