2017년 11월 6일 월요일

[Spring] DB setting

Dependencies:

Add these on POM.xml


<project>
    ...
    </build>
    <dependencies>
        // You write Dependencies here.
    </dependencies>
</project>

Spring context


<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-context</artifactId>
    <version>4.2.5.RELEASE</version>
</dependency>

Spring core


<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-core</artifactId>
    <version>4.2.5.RELEASE</version>
</dependency>

Spring jdbc


<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-jdbc</artifactId>
    <version>4.2.5.RELEASE</version>
</dependency>

Commons-dbcp


<dependency>
    <groupId>commons-dbcp</groupId>
    <artifactId>commons-dbcp</artifactId>
    <version>1.4</version>
</dependency>

MySQL connector

Download MySQL Connector
Project Folder Right Click > Build Path > Configure Build Path > Add External JARs > (Add this jar file)

Insert

  1. BookDaoSpring.java
  2. Test.java
  3. applicationContext.xml

BookDaoSpring.java

public class BookDaoSpring {
    // dao relies on this Object
    private JdbcTemplate jdbcTemplate;
    // Constructor, Setter for DI
    public BookDaoSpring() {}
    public BookDaoSpring(JdbcTemplate jdbcTemplate) {
        this.jdbcTemplate = jdbcTemplate;
    }
    public void setJdbcTemplate(JdbcTemplate jdbcTemplate) {
        this.jdbcTemplate = jdbcTemplate;
    }
////////////////////////////////////////////////////////
    public int insert(BookVO book) {
        String sql = 
            "INSERT INTO BOOK(TITLE,PUBLISHER,PRICE,WRITER)"
            +"VALUES(?,?,?,?)"; 
        return jdbcTemplate.update(sql,
                book.getTitle(),
                book.getPublisher(),
                book.getPrice(),
                book.getWriter());
    }
}

Test.java

public class Test {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("test02_spring/applicationContext.xml");
        BookDaoSpring dao = context.getBean("dao", BookDaoSpring.class);
  
        BookVO book = new BookVO("Spring textbook", "meme", 30000, "Samsung");
 System.out.println("insert Result"+dao.insert(book));
    }
}

applicationContext.xml

Right Click its package > New > Spring Bean Configuration File > name it 'applicationContext'

<bean id="ddd" class="org.apache.commons.dbcp.BasicDataSource">
 <property name="driverClassName" value="com.mysql.jdbc.Driver"/>
 <property name="url" value="jdbc:mysql://127.0.0.1./spring"/>
 <property name="username" value="root"/>
 <property name="password" value="sds1501"/>
</bean>

<bean id="jjjj" class="org.springframework.jdbc.core.JdbcTemplate">
 <property name="dataSource" ref="ddd"/>
</bean>

<bean id="dao" class="test02_spring.BookDaoSpring">
 <property name="jdbcTemplate" ref="jjjj"/>
</bean>
  
  
  
 

 

            
 

        
            
        

2017년 11월 5일 일요일

[Spring] Two ways to implements.

Sample.java

package test01_scope;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component("sss")
@Scope("prototype")
public class Sample {
 //
 }

Test.java

Sample sample1 = context.getBean("sss", Sample.class);

application.xml

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd">
<bean class="test01_scope.Sample" id="sample1" scope="prototype"/>
<bean class="test01_scope.Sample" id="sample2" scope="singleton"/>

<context:annotation-config/>
<context:component-scan base-package="test01_scope"/>
</beans>

2017년 11월 2일 목요일

[Spring]Beginning of Spring

There are many ways to implements Spring Project.

How to Make a Maven Project(for Beginner):

  1. Create 'Java Project'
  2. Right-Click the Project folder > Configure > Convert to Maven Project > Finish
  3. src > Spring Bean Configuration File(.xml) > name it 'applicationContext'

Then, it creates a POM.xml file. This is not the way you do in the company but to make it look clear without many files and complex file tree, you can start it in this way.
In the company, you create a Maven Project directly.

ref)
maven: accumulator of knowledge
POM: Project Object Model

Then, you have two choices to import Spring Library.

  1. Download: mvnrepository(spring-corespring-context)
  2. Edit POM.xml: 

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>Day02_DI</groupId>
  <artifactId>Day02_DI</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <build>
    <sourceDirectory>src</sourceDirectory>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.6.1</version>
        <configuration>
          <source>1.8</source>
          <target>1.8</target>
        </configuration>
      </plugin>
    </plugins>
  </build>
<dependencies>
<!-- https://mvnrepository.com/artifact/org.springframework/spring-core -->
<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-core</artifactId>
    <version>4.2.5.RELEASE</version>
</dependency>
  <!-- https://mvnrepository.com/artifact/org.springframework/spring-context -->
<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-context</artifactId>
    <version>4.2.5.RELEASE</version>
</dependency>
</dependencies>
</project>

Then, create 'spring Bean Configuration File' into 'src' folder with a name -  'applicationContext.xml'.


@autoWired

2017년 10월 27일 금요일

[jQuery] How to add and remove 'disabled' attribute.


$('#btn').attr('disabled', '');
$('#btn').attr('disabled', 'true');
$('#btn').attr('disabled', 'false');
$('#btn').attr('disabled', 'disabled');

Those are the same.

$('#btn').removeAttr('disabled');

This is how you remove the attribute.

[jsp]How to include 'header.jsp' and 'footer.jsp' in all the jsp files in easy way using web.xml

It might be wrong... But It is like this way.
Go to WebContent > WEB-INF and source like this.

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">
  <display-name>NeverIn</display-name>
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>default.html</welcome-file>
    <welcome-file>default.htm</welcome-file>
    <welcome-file>default.jsp</welcome-file>
  </welcome-file-list>

  <jsp-config>
  <jsp-property-group>
  <url-pattern>/board/*</url-pattern>
  <include-prelude>/board/header.jsp</include-prelude>
  <include-coda></include-coda>
  </jsp-property-group>
  </jsp-config>
</web-app>

2017년 10월 19일 목요일

[Servlet] How servlet looks like, what it contains its inside.

Servlet has Context Path(ex. @WebServlet("/file.do")) above class name and it consists of two parts - doGet(), doPost()

protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    if( ){
    } else if( ){
    } else if( ){
    } else ...
}

protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    if( ){
    } else if( ){
    } else if( ){
    } else ...
}

2017년 10월 17일 화요일

Servlet - > Ajax 한글 깨짐 해결 방법

Servlet에
response.setContentType("text/text;charset=euc-kr");

Ajax에
dataType: 'Text'

추가

2017년 10월 15일 일요일

[JSTL] JSTL Basic

[MySQL] How to write DB Dao

public class ADao {
private static final String DB_DRIVER = "com.mysql.jdbc.Driver";
private static final String DB_URL = 
"jdbc:mysql://ip:portNumber/jsp";
private static final String DB_ID = "id";
private static final String DB_PW = "password";

private Connection connection;
private PreparedStatement preparedStatement;
private ResultSet resultSet;

// singleton
private static ADao instance;
public static MemberDao getInstance() {
if(instance == null) {
instance = new ADao();
}
return instance;
}

private ADao() {
try {
Class.forName(DB_DRIVER);
} catch (ClassNotFoundException e) {
System.out.println("ADao Create Error");
e.printStackTrace();
}
}

private void createConnection() {
try {
connection = DriverManager.getConnection
(DB_URL, DB_ID, DB_PW);
} catch (SQLException e) {
System.out.println("Connection Error);
e.printStackTrace();
}
}

private void closeConnection() {
if (connection != null) {
try {
connection.close();
} catch (SQLException e) {
e.printStackTrace();
}
}
}

private void closePreparedStatement() {
if (preparedStatement != null) {
try {
preparedStatement.close();
} catch (SQLException e) {
e.printStackTrace();
}
}
}

private void closeResultSet() {
if (resultSet != null) {
try {
resultSet.close();
} catch (SQLException e) {
e.printStackTrace();
}
}
}

public int insert(Member member) {
createConnection();
String sql = "INSERT INTO MEMBER(ID,PW,PHONE,NAME)"
+ "VALUES(?,?,?,?)";
int result = 0;

try {
preparedStatement = connection.prepareStatement(sql);
preparedStatement.setString(1, member.getId());
preparedStatement.setString(2, member.getPw());
preparedStatement.setString(3, member.getPhone());
preparedStatement.setString(4, member.getName());

resultpreparedStatement.executeUpdate();
} catch (SQLException e) {
System.out.println("ADao insert error");
e.printStackTrace();
} finally {
closePreparedStatement();
closeConnection();
}
return result;

}
}


[JSTL] Duplicate Log In Check with JSTL

<c:if test = '${empty sessionScope.loginId}">
<form action = "${myContextPath}/member" method = "post">
ID:<input type="text name="id" size="20"><br>
PW:<input type="password" name="pw" size="20"><br>
<input type="submit" value="Sign up">
<input type="hidden" name="task" value="login">
</form>
</c:if>
<c:if test = '${not empty sessionScope.loginId}">
<script type = "text/javascript">
alert("This account is already logged in.");
</script>
<%
response.sendRedirect(request.getContextPath()+"/");
%>

2017년 10월 12일 목요일

[JSTL] Introduction to JSTL

  • What is JSTL?

JSTL stands for 'JSP Standard Tag Library'. It is a way to simplify JSP source code. As you may know, JSP's readibility is not good. JSTL increases its readibility and write code much simply.

  • How to download .jar file of JSTL.

Goto: http://www.mvnrepository.com
Search: jstl
Chose any jstl link and download .jar file.

  • How to apply JSTL in Eclipse

  1. Create a project: File > New > Dynamic Web Project ( keep pressing 'next' and check 'Generate web.xml deployment descripter' )
  2. Copy & Paste into lib folder: WebContent > WEB-INF > lib
  3. Now, you are ready to use JSTL

  • How to use JSTL in JSP

Add a directive: <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

MUST JSP JSTL
<%@page import="java.util.List"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
int n1 = 100, n2=200;
%>
<c:set var="n1" value="<%=n1%>"/>
<c:set var="n2" value="<%=n2%>"/>

n1 : ${n1} <br>
n2 : ${n2} <br>
n1 + n2 : ${n1+n2}<br>
n1 > n2 : ${n1>n2}<br>
n1 == n2 : ${n1 == n2}<br>
n1>0 && n2>0 : ${n1>0 && n2>0}<br>
n1>0 and n2>0 : ${n1>0 and n2>0}<br>
------------------------------------<hr>
<%List<String> words = new ArrayList<>();%>
<c:set var="words" value="<%=words%>"/>

is word empty? >> ${empty words}<br>
<% words.add("apple"); %>
add a word into 'words' List> ${words.get(0)}<br>
</body>
</html>


[Java] When 'sc.nextLine()' doesn't work after 'sc.nextInt()'

[Solution]
int n = sc.nextInt();
sc.skip("[\\r\\n]+");
for(int i = 0 ; i < n ; i++){
   String str = sc.nextLine();
   System.out.println(str);
}

2017년 10월 11일 수요일

[Servlet] doGet and doPost Defference

Basically, doGet and doPost are used in Servlet. It communicates with jsp. Servlet receives Parameters(request.getParameter("name")), all in String type. However, JSP gets Attributes(request.getAttributes("name")), all in Object type(So, you can simply cast using barces'( )'(int num = (Integer) request.getAttribute; ).

       Servlet                                        HTML
Get  request.getParameter("name")       request.getAttribute("name)
Set  request.setAttribute("name", value) <form>, <a>, <input> (it sends in doGet or doPost)
  • doGet
1. html(or jsp) -> servlet

# Send to Servlet

- Using <a> tag
<a href="<%=request.getContextPath()%>/board?type=deleteForm&articleNum=<%=article.getAritlcleNum()%>"></a>

- Using <form> tag
<form action="<%=request.getContextPath()%>/board">
(method="get" is omitted)
# Get from HTML

- request.getParameter("name") 
(Object(VO) example: Article)

Article article = new Article();
article.setTitle(request.getParameter("title"));
article.setWriter(request.getParameter("writer"));
article.setPassword(request.getParameter("password"));
article.setContents(request.getParameter("contents"));

2. servlet -> html(or jsp)

# Send to HTML
request.setAttribute("name", value)

# Get from Servlet
- request.getAttribute("name")
<%
int articleNum = (Integer) request.getAttribute("articleNum");
%>
<form action="..." method="post">
<input type="hidden" name ="acticleNum" value="<%=articleNum%>">
</form>
(type="hidden" for "doPost" later in <form> & submit)
  • doPost
1. html(or jsp) -> servlet

- Using <a> tag
No

- Using <form> tag & <input> tag
<form action="<%=request.getContextPath()%>/board" method="post">
<input type="hidden" name ="acticleNum" value="<%=articleNum%>
</form>
2. servlet -> html(or jsp)
- The same with doGet method

How to write DB Dao ( with Simple Board Example )

package dao;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Time;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import vo.Article;

public class BoardDao {
private static final String DB_DRIVER =
"com.mysql.jdbc.Driver";
private static final String DB_URL =
"jdbc:mysql://ip address:port number/db name";
private static final String DB_ID =
"id";
private static final String DB_PW =
"pw";
////////////////////////////////////////////////////////////
// singleton
private static BoardDao instance = new BoardDao();
public static BoardDao getInstance() {
return instance;
}
private BoardDao() {
try {
Class.forName(DB_DRIVER);
} catch (ClassNotFoundException e) {
System.out.println("mysql connection error");
e.printStackTrace();
}
}
////////////////////////////////////////////////////////////
private Connection con;
private PreparedStatement pstmt;
private ResultSet rs;

private void makeConnection() {
try {
con = DriverManager.getConnection
(DB_URL, DB_ID, DB_PW);
} catch (SQLException e) {
System.out.println("DB connection error");
e.printStackTrace();
}
}
private void closeCon() {
if(con!=null) {
try {
con.close();
} catch (SQLException e) {
e.printStackTrace();
}
}
}
private void closePstmt() {
if(pstmt!=null) {
try {
pstmt.close();
} catch (SQLException e) {
e.printStackTrace();
}
}
}
private void closeRs() {
if(rs!=null) {
try {
rs.close();
} catch (SQLException e) {
e.printStackTrace();
}
}
}
////////////////////////////////////////////////////////////
public int selectArticleCount() {
makeConnection();
String sql = "SELECT COUNT(*) FROM BOARD";
int result = 0;
try {
pstmt = con.prepareStatement(sql);
rs = pstmt.executeQuery();

rs.next();
result = rs.getInt(1);
} catch (SQLException e) {
System.out.println("dao count error");
e.printStackTrace();
} finally {
closeRs();
closePstmt();
closeCon();
}
return result;
}

public List<Article> selectArticleList
(int startRow, int count){
makeConnection();
String sql = "SELECT ARTICLE_NUM, TITLE,"
+ "WRITER, CONTENTS, READ_COUNT,"
+ "WRITE_DATE, PASSWORD FROM BOARD "
+ "ORDER BY ARTICLE_NUM DESC LIMIT ?,?";
List<Article> articleList = new ArrayList<>();

try {
pstmt = con.prepareStatement(sql);
pstmt.setInt(1, startRow);
pstmt.setInt(2, count);
rs = pstmt.executeQuery();

while(rs.next()) {
Article article = new Article();
article.setAritlcleNum(rs.getInt(1));
article.setTitle(rs.getString(2));
article.setWriter(rs.getString(3));
article.setContents(rs.getString(4));
article.setReadCount(rs.getInt(5));
article.setWriteDate(rs.getTimestamp(6));
article.setPassword(rs.getString(7));

articleList.add(article);
}
} catch (SQLException e) {
System.out.println("dao selectArticleList error");
e.printStackTrace();
} finally {
closeRs();
closePstmt();
closeCon();
}
return articleList;
}

//////////////////////////////////////////////////////////
public int insert(Article article) {
makeConnection();
String sql = "INSERT INTO BOARD"
+ "(TITLE,WRITER,PASSWORD,CONTENTS,READ_COUNT,"
+ "WRITE_DATE) VALUES(?,?,?,?,?,?)";
int result = 0;

try {
pstmt = con.prepareStatement(sql);
pstmt.setString(1, article.getTitle());
pstmt.setString(2, article.getWriter());
pstmt.setString(3, article.getPassword());
pstmt.setString(4, article.getContents());
pstmt.setInt(5, article.getReadCount());
pstmt.setTimestamp(6,
new Timestamp(article.getWriteDate().getTime()));

result = pstmt.executeUpdate();
} catch (SQLException e) {
System.out.println("dao insert error");
e.printStackTrace();
} finally {
closePstmt();
closeCon();
}
return result;
}
//////////////////////////////////////////////////////////
public int updateReadCount(int articleNum) {
makeConnection();
String sql =
"UPDATE BOARD SET READ_COUNT=READ_COUNT+1 "
+ "WHERE ARTICLE_NUM=?";
int result = 0;
try {
pstmt = con.prepareStatement(sql);
pstmt.setInt(1, articleNum);

result = pstmt.executeUpdate();
} catch (SQLException e) {
System.out.println("dao update error");
e.printStackTrace();
} finally {
closePstmt();
closeCon();
}
return result;
}
public Article select(int articleNum) {
makeConnection();
String sql =
"SELECT ARTICLE_NUM,TITLE,WRITER,"
+ "CONTENTS,WRITE_DATE,READ_COUNT FROM BOARD "
+ "WHERE ARTICLE_NUM=?";
Article article = null;

try {
pstmt = con.prepareStatement(sql);
pstmt.setInt(1, articleNum);
rs = pstmt.executeQuery();

if(rs.next()) {
article = new Article();
article.setAritlcleNum(rs.getInt(1));
article.setTitle(rs.getString(2));
article.setWriter(rs.getString(3));
article.setContents(rs.getString(4));
article.setWriteDate(rs.getTimestamp(5));
article.setReadCount(rs.getInt(6));
}
} catch (SQLException e) {
System.out.println("dao select error");
e.printStackTrace();
} finally {
closeRs();
closePstmt();
closeCon();
}
return article;
}
public int update(Article article) {
makeConnection();
int result = 0;
String sql = "update board set title=?, contents=?,"
+"write_date = ? where article_num=? and password=?";
try {
pstmt = con.prepareStatement(sql);

pstmt.setString(1, article.getTitle());
pstmt.setString(2, article.getContents());
pstmt.setString(2, article.getContents());
pstmt.setTimestamp(3, new Timestamp(article.getWriteDate().getTime()));
pstmt.setInt(4,  article.getAritlcleNum());
pstmt.setString(5,  article.getPassword());

result = pstmt.executeUpdate();
} catch (SQLException e) {
System.out.println("dao update error");
e.printStackTrace();
} finally {
closePstmt();
closeCon();
}
return result;
}
}

2017년 7월 27일 목요일

1630번: 오민식

https://www.acmicpc.net/problem/1630

#include<stdio.h>
long long int N, sosu[1000001], data[100000], ans = 1, cnt, tmp;
int main()
{
    int i, j;
    scanf("%lld", &N);
    sosu[1] = 1;
    for (i = 2; i <= N; i++)
    {
        if (sosu[i] == 0)
        {
            data[++cnt] = i;
            for (j = i; j <= N; j += i)
            {
                sosu[j] = 1;
            }
        }
    }
    for (i = 1; i <= cnt; i++)
    {
        tmp = N;
        while (tmp / data[i] >= 1)
        {
            tmp /= data[i];
            ans = ans*data[i] % 987654321;
        }
    }
    printf("%lld", ans);
    return 0;
}

2017년 6월 22일 목요일

김기방 측 “뷰티 사업가 김희경과 9월 30일 비공개 결혼”

김기방 측 “뷰티 사업가 김희경과 9월 30일 비공개 결혼”

조지 클루니, 데킬라 회사 매각 '최대 10억달러 돈방석'

조지 클루니, 데킬라 회사 매각 '최대 10억달러 돈방석'

주원 측 "오늘(22일) 신교대 수료, 백골부대 조교 발탁"

주원 측 "오늘(22일) 신교대 수료, 백골부대 조교 발탁"

'엠카' DAY6, 달콤보이스+비주얼 열일 '반드시 웃는다'

'엠카' DAY6, 달콤보이스+비주얼 열일 '반드시 웃는다'

'엠카' 몬스타엑스, '샤인 포에버' 최초공개…빛나는 퍼포먼스

'엠카' 몬스타엑스, '샤인 포에버' 최초공개…빛나는 퍼포먼스

로이킴, ‘봄봄봄’ 표절 항소심도 이겼다

로이킴, ‘봄봄봄’ 표절 항소심도 이겼다

‘박열’ 고민 컸던 이제훈·이준익 감독 “고증논란 의식했다” (접속무비월드)

‘박열’ 고민 컸던 이제훈·이준익 감독 “고증논란 의식했다” (접속무비월드)

'캐리비안의 해적 5' 200만 돌파, 키이라 나이틀리 영상 '깜짝 공개'

'캐리비안의 해적 5' 200만 돌파, 키이라 나이틀리 영상 '깜짝 공개'

[TV온에어] '그것이 알고싶다' 스텔라 데이지호 침몰 사고, 선체 결함·늑장 대응 '의혹

[TV온에어] '그것이 알고싶다' 스텔라 데이지호 침몰 사고, 선체 결함·늑장 대응 '의혹

'컬투' 정찬우 "아버지, 사고로 6세 수준..집 못찾아 길에서 아사"

'컬투' 정찬우 "아버지, 사고로 6세 수준..집 못찾아 길에서 아사"

OCN '듀얼', 정재영 추격전 눈길···순조로운 출발

OCN '듀얼', 정재영 추격전 눈길···순조로운 출발

[비 결혼 후 첫 인터뷰]③"새 영화, 일제강점기 독립군 이야기"

[비 결혼 후 첫 인터뷰]③"새 영화, 일제강점기 독립군 이야기"

'신서유기4' 티저 포스터 공개, 크리링·피콜로 추가요

'신서유기4' 티저 포스터 공개, 크리링·피콜로 추가요

[TV온에어] '최고의 한방' 윤시윤♥이세영, 입맞춤만 세 번 '운명의 상대'

[TV온에어] '최고의 한방' 윤시윤♥이세영, 입맞춤만 세 번 '운명의 상대'

놀고 먹는 예능 이젠 끝물?...방송가 '인문학 예능' 새 바람

놀고 먹는 예능 이젠 끝물?...방송가 '인문학 예능' 새 바람

'대마초 흡연 혐의' 탑 "사죄드리는 것조차 부끄럽다"

'대마초 흡연 혐의' 탑 "사죄드리는 것조차 부끄럽다"

[시선강탈] '당신은 너무합니다' 전광렬, 엄정화와 결혼 결심…강태오 '걸림돌' 되나

[시선강탈] '당신은 너무합니다' 전광렬, 엄정화와 결혼 결심…강태오 '걸림돌' 되나

'듀얼' 정재영, 혼·온몸 불태운 연기 내공 빛났다 [첫방기획]

'듀얼' 정재영, 혼·온몸 불태운 연기 내공 빛났다 [첫방기획]

'듀얼' 정재영, 혼·온몸 불태운 연기 내공 빛났다 [첫방기획]

'듀얼' 정재영, 혼·온몸 불태운 연기 내공 빛났다 [첫방기획]

[시선강탈] '최고의 한방' 장혁, 윤시윤 쥐락펴락 '깜짝 카메오'

[시선강탈] '최고의 한방' 장혁, 윤시윤 쥐락펴락 '깜짝 카메오'

'미우새' 서장훈 "어린시절 농구 못해…서러운 눈칫밥 먹었다"

'미우새' 서장훈 "어린시절 농구 못해…서러운 눈칫밥 먹었다"

'미우새' 강타, 토니·김재덕 침입에 망연자실 '한지붕 열가족'

'미우새' 강타, 토니·김재덕 침입에 망연자실 '한지붕 열가족'

'미우새' 주상욱 "아버지 이북 흥남 출신" 김건모母 동질감

'미우새' 주상욱 "아버지 이북 흥남 출신" 김건모母 동질감

'미우새' 주상욱 "모친과 동반출연 섭외 거절, 불안해"

 '미우새' 주상욱 "모친과 동반출연 섭외 거절, 불안해"

갤 가돗 주연 '원더우먼', 레바논 상영 금지…시오니스트 SNS '도마 위'

갤 가돗 주연 '원더우먼', 레바논 상영 금지…시오니스트 SNS '도마 위'

'캐리비안의 해적 5' 안토니 데 라 토레, 어린 잭 스패로우 '화제'

'캐리비안의 해적 5' 안토니 데 라 토레, 어린 잭 스패로우 '화제'

호날두, 새 여친과 다정 포옹…주인공은 모델 조지나 로드리게스

호날두, 새 여친과 다정 포옹…주인공은 모델 조지나 로드리게스

"나로 말할 것 같으면"…마마무, 이번엔 '큐티허세'다(종합)

"나로 말할 것 같으면"…마마무, 이번엔 '큐티허세'다(종합)

[화보]여전히 완벽한 최지우, 이쯤이면 원더우먼

[화보]여전히 완벽한 최지우, 이쯤이면 원더우먼

[여당] 어리숙한 척 하더니…치밀했던 정유라의 반전

[여당] 어리숙한 척 하더니…치밀했던 정유라의 반전

[국회] 조롱으로 얼룩진 자유한국당 '오행시 이벤트'

[국회] 조롱으로 얼룩진 자유한국당 '오행시 이벤트'

2017년 6월 12일 월요일

KT고객 1,000만원 당첨 주식투자노트 신규가입 캠페인

100자 리뷰

‘KT 고객이라면 누구나 1,000만원 당첨!’ 프로모션 오픈!
확률은 반반!
KT 고객이라면 누구나 이벤트 응모하면 총 1,000만원 당첨?!
■ 주식투자노트 이벤트 참여하고
■ 매일 수익 예상 종목과
■ 1,000만원 상당 혜택 받아가세요!

▶이벤트 참여방법◀
"코스피 또는 코스닥" 중에 선택만 하면 이벤트 참여 끝!!
▶주식투자노트란◀
KT 프리미엄 주식서비스로써 한국경제TV전문가가 분석한 수익예상 종목 및 주식핵심정보를 매일 3번 문자로 받는 서비스
▶빨리 응모할수록 당첨 확률 UP!

캠페인 소개

[ 주식투자노트 서비스 소개 ]

1) 서비스 특장점
- 국내에서 유일하게 이동통신 3사와 제휴하여
초보자도 얼마든지 수익을 낼 수 있는 종목 위주로 추천해드리는 서비스
- 지속적인 A/S를 통해 주식투자를 확실히 도와드립니다.
- 실시간 주식 분석 내용을 하루 3번 문자로 보내드립니다.

승률 80%의 VIP종목알리미를 7일간 무료로 체험할 수 있는 마지막 기회!

주식투자 VIP종목 알리미 7일 무료 신청 이벤트

승률 80%의 VIP종목알리미를 7일간 무료로 체험할 수 있는 마지막 기회!
▶오픈 한 달 동안 VIP종목알리미 성적
추천종목 39개 중 31개 수익실현(80%)
누적수익 215%

승률 80%의 VIP종목알리미를 7일간 무료로 체험할 수 있는 마지막 기회!

주식투자 VIP종목 알리미 7일 무료 신청 이벤트

승률 80%의 VIP종목알리미를 7일간 무료로 체험할 수 있는 마지막 기회!
▶오픈 한 달 동안 VIP종목알리미 성적
추천종목 39개 중 31개 수익실현(80%)
누적수익 215%

주식투자 VIP종목 알리미 7일 무료 신청 이벤트

주식투자 VIP종목 알리미 7일 무료 신청 이벤트

승률 80%의 VIP종목알리미를 7일간 무료로 체험할 수 있는 마지막 기회!
▶오픈 한 달 동안 VIP종목알리미 성적
추천종목 39개 중 31개 수익실현(80%)
누적수익 215%

주식투자 VIP종목 알리미 7일 무료 신청 이벤트

주식투자 VIP종목 알리미 7일 무료 신청 이벤트

승률 80%의 VIP종목알리미를 7일간 무료로 체험할 수 있는 마지막 기회!
▶오픈 한 달 동안 VIP종목알리미 성적
추천종목 39개 중 31개 수익실현(80%)
누적수익 215%

구강관리정보 확인하고 제트워셔와 음파전동칫솔 할인혜택의 기회를 잡으세요!

파나소닉 오랄케어 구강관리정보

입속 세균은 심장,폐,뇌 건강까지 해칠 수 있다고 합니다!
건강관리의 첫걸음!
구강관리정보 확인하고 제트워셔와 음파전동칫솔 할인혜택의 기회를 잡으세요!