아키텍처와 함께

블로그 이미지
by gregorio
  • Total hit
  • Today hit
  • Yesterday hit

HTML 또는 JSP에서 <a> tag에서 URL을 호출하기 위해서 다음과 같이 코딩한다.


■ javascript

function localeChange(locale) { 

    debugger; 

    document.location.href = "<c:url value='/service/changeLocale.do?locale=" + locale + "'/>"; }


■ jsp

            <div id="LblockSupportMenu">

            <ul>

            <li class="Lfirst" id="liEmpNm" >

            Welcome to <a href="#" onclick="preference();"><strong><erp:sess attr="EMP_NM"></erp:sess></strong></a>

            </li>

            <li class="Llast" >

           

            <input type="button"  id="btnLogin" value="Login"  />

            <input type="button"  id="btnLogout" value="Logout"  onclick="logout();" />

                        <!-- button type="button" id="btnLogin" class="btn_action">Login</button -->

  <!-- button type="button" id="btnLogout" class="btn_action"  onclick="logout();" style="margin : 0 0 10 0px">Logout</button -->

            </li>

            <li class="lang"><a href="#" onclick="localeChange('bh');"> <img src="/ibm/resource/images/new/utility_arabic.png" alt="sehati" /></a> </li>

            <li class="lang"><a href="#" onclick="localeChange('en');"> <img src="/ibm/resource/images/new/utility_arabic.png" alt="sehati" /></a> </li>

            </ul>

            </div> 


'Java' 카테고리의 다른 글

JVM GC 설정  (0) 2018.06.07
Java Reflection 사용법  (0) 2018.04.12
JSP의 img, script에 jsessionid가 추가되는 경우  (0) 2018.02.22
CDI를 이용한 Java 개발  (0) 2018.02.13
Java Class Instance화  (0) 2018.02.12
AND

ARTICLE CATEGORY

분류 전체보기 (56)
Spring Framrwork (33)
Linux (1)
APM (1)
Java (8)
python (0)
ant (1)
chart (1)
OS (1)
tomcat (1)
apache (1)
database (0)

RECENT ARTICLE

RECENT COMMENT

CALENDAR

«   2024/10   »
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

ARCHIVE

LINK