메뉴 건너뛰기

tnt_os

IBM WebSphere *.jsp를 compile한 후 *.java소스보기

박상현 2003.11.27 16:26 조회 수 : 2635 추천:61

첫번째 방법
=========================================
1. ear로 묶으신 다음에 jsp속성에
2. key : keepgenerated
3. value : true
        로 설정하시고 install하시면 source보실수 있습니다.

참고 : ibm-web-ext.xmi 에
                        <jspAttributes xmi:id="JSPAttribute_1069915575700" name="keepgenerated" value="true"/>
                        <jspAttributes xmi:id="JSPAttribute_1069915575701" name="scratchdir" value="d:tempprecompiled_jsp"/>

                        이런형식으로 JSPAttribute ID가 들어가도록 되어있고,
                        내부적으로 맵핑되는부분이 있어서. 강제 editing으로 source보기가 안되는거 같아요


두번째 방법(임의의 id주는 방법)
==========================================
1. ibm-web-ext.xmi 파일에서  다음 두라인을 맨마지막 위에
  <jspAttributes xmi:id="JSPAttribute_1069915575700" name="keepgenerated" value="true"/>
  <jspAttributes xmi:id="JSPAttribute_1069915575701" name="scratchdir" value="d:tempprecompiled_jsp"/>

참고1 : 두번째 JSPAttribute인 scratchdir의 경로는
            소스가 d:tempprecompiled_jsp밑으로 생성되는 것임

참고2: 수정시 두군데를 수정할것..
              $WAS_HOME/config/....와
              $WAS_HOME/installedApps/...를 수정할것...
(예 -> C:ibmWebSphereAppServerconfigcellslinuzerapplicationsnds.eardeploymentsndsnds.warWEB-INF)
위로