'tag'에 해당되는 글 1건

  1. 2008.11.21 struts2 tag
posted by 준치 2008. 11. 21. 19:40

1. <s:property/> 기본적으로 액션 클래스의 프로퍼티 값을 출력한다

    default   String value 속성 값이 널이면 사용할 기본값

    excape  Boolean Html 형식으로 출력할지여부

    value     Object          출력할 값 

    id          Object/String  참조할 요소에 대한 id , UI, form 태그에 대하여 HTML id 속성 사용

 

2.<s:iterator/> 값들을 반복처리 한다 .

    iterator 반복 대상은

    java.util.Collection 과 java.util.Iterator 다

   status Boolean 선언되어 있다면 , IteratorStatis 의 인스턴스가 iterration 스택에 저장된다 .

   value  Object/String   반복될수 있는 소스,아니면 그 자체의 객체가 새롭게 생성된 리스트

   id        Object/String  참조할 요소에 대한 id , UI, form 태그에 대하여 HTML id 속성 사용

 

3. <s:if /> , <s:elseif /> , <s:else />  조건문

    test   표현식

    id     Object/String  참조할 요소에 대한 id , UI, form 태그에 대하여 HTML id 속성 사용

 

4.<s:date name="currentDate"/><br/>
  <s:date name="currentDate" format="yyyy-MM-dd hh:mm:ss"/><br/> 

   날짜 출력

   name   변수명

   nice     Boolean  [나중정리]  

   formart 출력 포멧

 

5.<s:textfield /> input type="text"

   maxlangth 

   value
6.<s:form /> input type='submit'
   onsubmit()   html onsubmit 속성

   action          action 이름 

   target          target 속성

   enctype      enctype 속성

   method       method 속성

   namespace  네임 스페이스 엑션의 네임 스페이스

   validate      Boolean  클라이언트/리모트에서 유효성 검사 수행 여부 

   portletMode   폼을 서브밋 한후 출력한 포틀릿 모드

   windowState   폼을 서브및 한후 출력할 원도우 상태

   acceptcharset 폼에 대한 문자 셋 설정 ,

   openTemplate   랜더링된 HTML 을 열기 위하여 사용 

    Ajax 사용시

   href

   errorText

   listenTopics

   notifyTopics

   executeScripts

   lodingText

   listenTopics

   handler

   formFilter

   targets

   showErrorTransportText

   indicator   

    

 

7.<s:textarea />  theme  에 simple 값을 설정하면 <textarea /> 테그로 랜더링 되고

                         theme 에 ajax 값을 설정 하면 텍스트에 포맷을 설정할수 있는 Dojo 컴포넌트로 랜더링된다 .

 

   cols    HTML 의 cols ,

   rows

   wrap 

   theme

 

8.<s:head/>  html 파일에 대한 head 섹셩의 부분으로 랜더링 된다 . 테마의 css 를 적용하고 .

                   자바스크립트를 포함할때 유용하다

      calendarcss    사용할 jscalender css 테마 기본값은 calender-blue.css 이다 .

      debug            ajax 테마에서 대한 디버깅 모드를 사용 하기 위해서 true 설정

      theme              simple , xhtml , ajax 테마중 택일  

 

9.<s:datetimepicker/> Dojo datetimepicker 요소를 랜더링 한다 .

     datetimepicker 위젯은 연도,월 ,주를 증가시키면서 날짜를 쉽게 선택 할수 있게 해주는 기능을 갖는다 .

     adjustWeeks  boolean true 로 설정되면 카렌다의 주별 크기가 월에 적합하게 변한다 . false 로 설정되면 42일 형식이사용된다. 

     dayWidth       String 헤더에서 요일의 이름을 렌더링 하는 방식

     displayFormart  String 날짜를 출력하는 형식

     displayWeeks   Integer 출력할 총 주의 수

     endDate           2941-10-12 카렌더에서 설정되는 마지막 날짜

     formatLength     String 출력할 떄 사용할 형식의 타입

     iconPath          드롭다운에 사용할 아이콘 경로

     startDate          카렌더에서 설정되는 처음 날짜

     statucDisplay   월년도 등 증가 버튼을 출력 하지 않는다 .

      toggleDuratuib  토글시간

      toggleType       카렌터 박스의 출력 형식 , plain,wide , explode ,fade

      type                 드롭다운 선택 버튼 형싣 ,

      weekStarton      주의 첫요일 설정(0==일요일,6==토요일)      

 

10.<s:url />       url 을 생성 할수 있다 . 요청 파라미터를 추가 시킬수도 있다

      <s:url >

         <s:parameter name=""/>

      </s:url>

      includeParams      includeParams 속성은 none , get , all 중 하나

      scheme                scheme 속성을 설정한다

      value                    action 속성을 사용하지 않는다면 사용할 target

      action                  action

      namespace           사용할 네임 스페이스

      method                 사용할 actuib  의 메소드

      encode                 파라미터를 인코딩 할것인지 여부

      includeContext       실제 컨텍스트가 url 안에 포함되어야 하는지 여부

      portleMode            포틀릿 결과 모드

      windowState          포틀릿 결과 원도우 상태

      portietUrlType          폴틀릿 랜더링 또는 action url 인지 설정

      anchor                   url 에 대한 anchor

      id

    

     <s:param />

       name ,

       value

       id

     <s:a />