모바일 오유 바로가기
http://m.todayhumor.co.kr
분류 게시판
베스트
  • 베스트오브베스트
  • 베스트
  • 오늘의베스트
  • 유머
  • 유머자료
  • 유머글
  • 이야기
  • 자유
  • 고민
  • 연애
  • 결혼생활
  • 좋은글
  • 자랑
  • 공포
  • 멘붕
  • 사이다
  • 군대
  • 밀리터리
  • 미스터리
  • 술한잔
  • 오늘있잖아요
  • 투표인증
  • 새해
  • 이슈
  • 시사
  • 시사아카이브
  • 사회면
  • 사건사고
  • 생활
  • 패션
  • 패션착샷
  • 아동패션착샷
  • 뷰티
  • 인테리어
  • DIY
  • 요리
  • 커피&차
  • 육아
  • 법률
  • 동물
  • 지식
  • 취업정보
  • 식물
  • 다이어트
  • 의료
  • 영어
  • 맛집
  • 추천사이트
  • 해외직구
  • 취미
  • 사진
  • 사진강좌
  • 카메라
  • 만화
  • 애니메이션
  • 포니
  • 자전거
  • 자동차
  • 여행
  • 바이크
  • 민물낚시
  • 바다낚시
  • 장난감
  • 그림판
  • 학술
  • 경제
  • 역사
  • 예술
  • 과학
  • 철학
  • 심리학
  • 방송연예
  • 연예
  • 음악
  • 음악찾기
  • 악기
  • 음향기기
  • 영화
  • 다큐멘터리
  • 국내드라마
  • 해외드라마
  • 예능
  • 팟케스트
  • 방송프로그램
  • 무한도전
  • 더지니어스
  • 개그콘서트
  • 런닝맨
  • 나가수
  • 디지털
  • 컴퓨터
  • 프로그래머
  • IT
  • 안티바이러스
  • 애플
  • 안드로이드
  • 스마트폰
  • 윈도우폰
  • 심비안
  • 스포츠
  • 스포츠
  • 축구
  • 야구
  • 농구
  • 바둑
  • 야구팀
  • 삼성
  • 두산
  • NC
  • 넥센
  • 한화
  • SK
  • 기아
  • 롯데
  • LG
  • KT
  • 메이저리그
  • 일본프로야구리그
  • 게임1
  • 플래시게임
  • 게임토론방
  • 엑스박스
  • 플레이스테이션
  • 닌텐도
  • 모바일게임
  • 게임2
  • 던전앤파이터
  • 마비노기
  • 마비노기영웅전
  • 하스스톤
  • 히어로즈오브더스톰
  • gta5
  • 디아블로
  • 디아블로2
  • 피파온라인2
  • 피파온라인3
  • 워크래프트
  • 월드오브워크래프트
  • 밀리언아서
  • 월드오브탱크
  • 블레이드앤소울
  • 검은사막
  • 스타크래프트
  • 스타크래프트2
  • 베틀필드3
  • 마인크래프트
  • 데이즈
  • 문명
  • 서든어택
  • 테라
  • 아이온
  • 심시티5
  • 프리스타일풋볼
  • 스페셜포스
  • 사이퍼즈
  • 도타2
  • 메이플스토리1
  • 메이플스토리2
  • 오버워치
  • 오버워치그룹모집
  • 포켓몬고
  • 파이널판타지14
  • 배틀그라운드
  • 기타
  • 종교
  • 단어장
  • 자료창고
  • 운영
  • 공지사항
  • 오유운영
  • 게시판신청
  • 보류
  • 임시게시판
  • 메르스
  • 세월호
  • 원전사고
  • 2016리오올림픽
  • 2018평창올림픽
  • 코로나19
  • 2020도쿄올림픽
  • 게시판찾기
  • 오유인페이지
    개인차단 상태
    발로알겠소님의
    개인페이지입니다
    가입 : 11-06-11
    방문 : 1961회
    닉네임변경 이력
    회원차단
    회원차단해제
    게시물ID : programmer_7891
    작성자 : 발로알겠소
    추천 : 0/5
    조회수 : 2625
    IP : 175.246.***.151
    댓글 : 5개
    등록시간 : 2015/01/29 17:29:51
    http://todayhumor.com/?programmer_7891 모바일
    MultiPartRequest 를 이용한 다중파일 업로드 ㅠㅠ 도와주세요
    지금 학원에서 프로젝트로 쇼핑몰 홈페이지를 작성하고 있는데요
    몇날며칠을 찾아봐도 해답이 없어 여기에 여쭤봅니다 ㅠㅠ
    이클립스 루나, 톰캣 7.0,  파일 업로드는 cos.jar로 이용하고 있구요
     
    기존에 있던 예제에 저희가 필요하다 생각되는 부분을 더 추가하여 발표하려하는데
    제가 담당한 부분은 관리자가 쇼핑몰 상품을 등록하는 부분입니다.
    상품이미지가 한개 첨부되던걸 메인, 내부, 상세이미지 세개로 늘리고
    상품 부제목을 추가한게 다입니다
     
    부제목 name2까지는 구현이 되었고
    상품이미지 업로드 과정에서 앞서 말씀드린 새로 추가한 내부이미지 image2와 상세이미지 image3가 업로드 되지 않고 있는 상황입니다 ㅠㅠ
    선생님한테 여쭈어도 뾰족한 수가 없어서....
    우선 제가 손댄 부분들과 중요한 파일들의 목록을 보여드릴게요
    목록1.png
    목록2.png
    소스 올려드리겠습니다
     
    ProductVO.java는 getter setter 추가한거구요
    -----------------------------------------------------------------
    package com.nonage.dto;
    import java.sql.Timestamp;
    public class ProductVO
    {
     private int pseq;
     private String name;
     private String name2; //부제목
     private String kind;
     private int price1;
     private int price2;
     private int price3;
     private String content;
     private String image;
     private String image2;  //내부메인이미지
     private String image3;  //내부상세이미지
     private String useyn;
     private String bestyn;
     private Timestamp indate;
     }
     
    *******중략*******

      public String getImage() {
      return image;
     }
     public void setImage(String image) {
      this.image = image;
     }
     public String getName2() {
      return name2;
     }
     public void setName2(String name2) {
      this.name2 = name2;
     }
     public String getImage2() {
      return image2;
     }
     public void setImage2(String image2) {
      this.image2 = image2;
     }
     public String getImage3() {
      return image3;
     }
     public void setImage3(String image3) {
      this.image3 = image3;
     }
    }
    ----------------------------------------------------
    productWrite.jsp 입니다.
    관리자가 상품을 등록하는 페이지입니다.
    <%@ page language="java" contentType="text/html; charset=UTF-8"
     pageEncoding="UTF-8"%>
    <%@ include file="/admin/header.jsp"%>
    <%@ include file="/admin/sub_menu.jsp"%>
    <article>
     <h1>상품등록</h1>
     <form name="frm" method="post" enctype="multipart/form-data">
      <table id="list">
       <tr>
        <th>상품분류</th>
        <td colspan="5"><select name="kind">
          <c:forEach items="${kindList}" var="kind" varStatus="status">
           <option value="${status.count}">${kind}</option>
          </c:forEach>
        </select>
       <tr>
        <th>상품명</th>
        <td width="343" colspan="5"><input type="text" name="name"
         size="47" maxlength="100"></td>
       </tr>
       <tr>
        <th>부제목</th>
        <td width="343" colspan="5"><input type="text" name="name2"
         size="47" maxlength="100"></td>
       </tr>
       <tr>
        <th>딜가격[A]</th>
        <td width="70"><input type="text" name="price1" size="11"
         onKeyUp='NumFormat(this)'></td>
        <th>원가[B]</th>
        <td width="70"><input type="text" name="price2" size="11"
         onBlur="go_ab()" onKeyUp='NumFormat(this)'></td>
        <th>[B-A]</th>
        <td width="72"><input type="text" name="price3" size="11"
         readonly onKeyUp='NumFormat(this)'></td>
       </tr>
       <tr>
        <th>상세설명</th>
        <td colspan="5"><textarea name="content" rows="8" cols="70"></textarea>
        </td>
       </tr>
       <tr>
        <th>상품이미지(메인)</th>
        <td width="343" colspan="5"><input type="file" name="image">
        </td>
       </tr>
       <tr>
        <th>상품이미지(내부)</th>
        <td width="343" colspan="5"><input type="file" name="image2">
        </td>
       </tr>
       <tr>
        <th>상세이미지</th>
        <td width="343" colspan="5"><input type="file" name="image3">
        </td>
       </tr>
      </table>
      <input class="btn" type="button" value="등록" onClick="go_save()">
      <input class="btn" type="button" value="취소" onClick="go_mov()">
     </form>
    </article>
    <%@ include file="/admin/footer.jsp"%>
    </body>
    </html>
     
    ------------------------------------------------------------------------
    ProductDAO.java 입니다
     
    package com.nonage.dao;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.util.ArrayList;
    import util.DBManager;
    import com.nonage.dto.ProductVO;
    public class ProductDAO {
     // 외부에서 인스턴스 생성을 막음
     private ProductDAO() {
     }
     private static ProductDAO instance = new ProductDAO();
     public static ProductDAO getInstance() {
      return instance;
     }
     // ArrayList 객체를 저장하는 임시 공간
     public ArrayList<ProductVO> listNewProduct() {
      ArrayList<ProductVO> productList = new ArrayList<ProductVO>();
      String sql = "select * from new_pro_view";
      Connection conn = null;
      PreparedStatement pstmt = null;
      ResultSet rs = null;
      try {
       conn = DBManager.getConnection();
       pstmt = conn.prepareStatement(sql);
       rs = pstmt.executeQuery();
       while (rs.next()) {
        ProductVO product = new ProductVO();
        product.setPseq(rs.getInt("pseq"));
        product.setName(rs.getString("name"));
        product.setPrice1(rs.getInt("price1"));
        product.setPrice2(rs.getInt("price2"));
        product.setImage(rs.getString("image"));
        //product.setName2(rs.getString("name2"));
        productList.add(product);
       }
      } catch (Exception e) {
       e.printStackTrace();
      } finally {
       DBManager.close(conn, pstmt, rs);
      }
      return productList;
     }
     public ArrayList<ProductVO> listBestProduct() {
      ArrayList<ProductVO> productList = new ArrayList<ProductVO>();
      String sql = "select * from best_pro_view";
      Connection conn = null;
      PreparedStatement pstmt = null;
      ResultSet rs = null;
      try {
       conn = DBManager.getConnection();
       pstmt = conn.prepareStatement(sql);
       rs = pstmt.executeQuery();
       while (rs.next()) {
        ProductVO product = new ProductVO();
        product.setPseq(rs.getInt("pseq"));
        product.setName(rs.getString("name"));
        product.setPrice1(rs.getInt("price1"));
        product.setPrice2(rs.getInt("price2"));
        product.setImage(rs.getString("image"));
        //product.setName2(rs.getString("name2"));
        productList.add(product);
       }
      } catch (Exception e) {
       e.printStackTrace();
      } finally {
       DBManager.close(conn, pstmt, rs);
      }
      return productList;
     }
     public ProductVO getProduct(String pseq) {
      ProductVO product = null;
      String sql = "select * from product where pseq=?";
      Connection con = null;
      PreparedStatement pstmt = null;
      ResultSet rs = null;
      try {
       con = DBManager.getConnection();
       pstmt = con.prepareStatement(sql);
       pstmt.setString(1, pseq);
       rs = pstmt.executeQuery();
       if (rs.next()) {
        product = new ProductVO();
        product.setPseq(rs.getInt("pseq"));
        product.setName(rs.getString("name"));
        product.setKind(rs.getString("kind"));
        product.setPrice1(rs.getInt("price1"));
        product.setPrice2(rs.getInt("price2"));
        product.setPrice3(rs.getInt("price3"));
        product.setContent(rs.getString("content"));
        product.setImage(rs.getString("image"));
        product.setUseyn(rs.getString("useyn"));
        product.setBestyn(rs.getString("bestyn"));
        product.setIndate(rs.getTimestamp("indate"));
        product.setName2(rs.getString("name2"));
        product.setImage2(rs.getString("image2"));
        product.setImage3(rs.getString("image3"));
       }
      } catch (Exception e) {
       e.printStackTrace();
      } finally {
       DBManager.close(con, pstmt, rs);
      }
      return product;
     }
     public ArrayList<ProductVO> listKindProduct(String kind) {
      ArrayList<ProductVO> productList = new ArrayList<ProductVO>();
      String sql = "select * from product where kind=?";
      Connection conn = null;
      PreparedStatement pstmt = null;
      ResultSet rs = null;
      try {
       conn = DBManager.getConnection();
       pstmt = conn.prepareStatement(sql);
       pstmt.setString(1, kind);
       rs = pstmt.executeQuery();
       while (rs.next()) {
        ProductVO product = new ProductVO();
        product.setPseq(rs.getInt("pseq"));
        product.setName(rs.getString("name"));
        product.setPrice2(rs.getInt("price2"));
        product.setImage(rs.getString("image"));
        //product.setName2(rs.getString("name2"));
        productList.add(product);
       }
      } catch (Exception e) {
       e.printStackTrace();
      } finally {
       DBManager.close(conn, pstmt, rs);
      }
      return productList;
     }
     /* 관리자 모드에서 사용되는 메소드 */
     public int totalRecord(String product_name) {
      int total_pages = 0;
      String sql = "select count(*) from product where name like '%'||?||'%'";
      Connection con = null;
      PreparedStatement pstmt = null;
      ResultSet pageset = null;
      try {
       con = DBManager.getConnection();
       pstmt = con.prepareStatement(sql);
       if (product_name.equals("")) {
        pstmt.setString(1, "%");
       } else {
        pstmt.setString(1, product_name);
       }
       pageset = pstmt.executeQuery();
       if (pageset.next()) {
        total_pages = pageset.getInt(1); // 레코드의 개수
        pageset.close();
       }
      } catch (Exception e) {
       e.printStackTrace();
      } finally {
       DBManager.close(con, pstmt);
      }
      return total_pages;
     }
     static int view_rows = 5; // 페이지의 개수
     static int counts = 5; // 한 페이지에 나타낼 상품의 개수
     // 페이지 이동을 위한 메소드
     public String pageNumber(int tpage, String name) {
      String str = "";
      int total_pages = totalRecord(name);
      int page_count = total_pages / counts + 1;
      if (total_pages % counts == 0) {
       page_count--;
      }
      if (tpage < 1) {
       tpage = 1;
      }
      int start_page = tpage - (tpage % view_rows) + 1;
      int end_page = start_page + (counts - 1);
      if (end_page > page_count) {
       end_page = page_count;
      }
      if (start_page > view_rows) {
       str += "<a href='NonageServlet?command=admin_product_list&tpage=1&key="
         + name + "'><<</a>&nbsp;&nbsp;";
       str += "<a href='NonageServlet?command=admin_product_list&tpage="
         + (start_page - 1);
       str += "&key=<%=product_name%>'><</a>&nbsp;&nbsp;";
      }
      for (int i = start_page; i <= end_page; i++) {
       if (i == tpage) {
        str += "<font color=red>[" + i + "]&nbsp;&nbsp;</font>";
       } else {
        str += "<a href='NonageServlet?command=admin_product_list&tpage="
          + i + "&key=" + name + "'>[" + i + "]</a>&nbsp;&nbsp;";
       }
      }
      if (page_count > end_page) {
       str += "<a href='NonageServlet?command=admin_product_list&tpage="
         + (end_page + 1) + "&key=" + name
         + "'> > </a>&nbsp;&nbsp;";
       str += "<a href='NonageServlet?command=admin_product_list&tpage="
         + page_count + "&key=" + name
         + "'> > > </a>&nbsp;&nbsp;";
      }
      return str;
     }
     public ArrayList<ProductVO> listProduct(int tpage, String product_name) {
      ArrayList<ProductVO> productList = new ArrayList<ProductVO>();
      String str = "select pseq, indate, name, price1, price2, useyn, bestyn, name2 "
        + " from product where name like '%'||?||'%' order by pseq desc";
      Connection con = null;
      PreparedStatement pstmt = null;
      ResultSet rs = null;
      int absolutepage = 1;
      try {
       con = DBManager.getConnection();
       absolutepage = (tpage - 1) * counts + 1;
       pstmt = con.prepareStatement(str, ResultSet.TYPE_SCROLL_SENSITIVE,
         ResultSet.CONCUR_UPDATABLE);
       if (product_name.equals("")) {
        pstmt.setString(1, "%");
       } else {
        pstmt.setString(1, product_name);
       }
       rs = pstmt.executeQuery();
       if (rs.next()) {
        rs.absolute(absolutepage);
        int count = 0;
        while (count < counts) {
         ProductVO product = new ProductVO();
         product.setPseq(rs.getInt(1));
         product.setIndate(rs.getTimestamp(2));
         product.setName(rs.getString(3));
         product.setPrice1(rs.getInt(4));
         product.setPrice2(rs.getInt(5));
         product.setUseyn(rs.getString(6));
         product.setBestyn(rs.getString(7));
         product.setName2(rs.getString(8));
         productList.add(product);
         if (rs.isLast()) {
          break;
         }
         rs.next();
         count++;
        }
       }
      } catch (Exception e) {
       e.printStackTrace();
      } finally {
       DBManager.close(con, pstmt, rs);
      }
      return productList;
     }
     public int insertProduct(ProductVO product) {
      int result = 0;
      String sql = "insert into product ("
        + "pseq, kind, name, price1, price2, price3, content, image, name2, image2, image3) "
        + "values(product_seq.nextval, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )";
      Connection con = null;
      PreparedStatement pstmt = null;
      try {
       con = DBManager.getConnection();
       pstmt = con.prepareStatement(sql);
       pstmt.setString(1, product.getKind());
       pstmt.setString(2, product.getName());
       pstmt.setInt(3, product.getPrice1());
       pstmt.setInt(4, product.getPrice2());
       pstmt.setInt(5, product.getPrice3());
       pstmt.setString(6, product.getContent());
       pstmt.setString(7, product.getImage());
       pstmt.setString(8, product.getName2());
       pstmt.setString(9, product.getImage2());
       pstmt.setString(10, product.getImage3());
       result = pstmt.executeUpdate();
      } catch (Exception e) {
       System.out.println("추가 실패");
       e.printStackTrace();
      } finally {
       DBManager.close(con, pstmt);
      }
      return result;
     }
     public int updateProduct(ProductVO product) {
      int result = -1;
      String sql = "update product set kind=?, useyn=?, name=?"
        + ", price1=?, price2=?, price3=?, content=?, image=?, bestyn=?"
        + ", name2=?, image2=?, image3=? "
        + "where pseq=?";
      Connection con = null;
      PreparedStatement pstmt = null;
      try {
       con = DBManager.getConnection();
       pstmt = con.prepareStatement(sql);
       pstmt.setString(1, product.getKind());
       pstmt.setString(2, product.getUseyn());
       pstmt.setString(3, product.getName());
       pstmt.setInt(4, product.getPrice1());
       pstmt.setInt(5, product.getPrice2());
       pstmt.setInt(6, product.getPrice3());
       pstmt.setString(7, product.getContent());
       pstmt.setString(8, product.getImage());
       pstmt.setString(9, product.getBestyn());
       pstmt.setInt(10, product.getPseq());
       pstmt.setString(11, product.getName2());
       pstmt.setString(12, product.getImage2());
       pstmt.setString(13, product.getImage3());
       result = pstmt.executeUpdate();
      } catch (Exception e) {
       e.printStackTrace();
      } finally {
       DBManager.close(con, pstmt);
      }
      return result;
     }
    }
    --------------------------------------------------
    그리고 지금 제가 제일 갑갑한 AdminProductWriteAction.java 입니다
    위에 jsp로 작성된 파일들을 얘를 통해서 업로드하게 되어있는데요
    인터넷에 아무리 찾아보아도 다들 서블릿으로 작성하셔서 ㅠㅠ
    여기서 Enumeration 을 어떻게 적용해야할지 모르겠어요 ㅠㅠㅠㅠㅠㅠㅠㅠㅠ
     
    package com.nonage.admin.controller.action;
    import java.io.IOException;
    import java.util.Enumeration;
    import javax.servlet.ServletContext;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    import com.nonage.controller.action.Action;
    import com.nonage.dao.ProductDAO;
    import com.nonage.dto.ProductVO;
    import com.oreilly.servlet.MultipartRequest;
    import com.oreilly.servlet.multipart.DefaultFileRenamePolicy;
    public class AdminProductWriteAction implements Action {
     @Override
     public void execute(HttpServletRequest request, HttpServletResponse response)
       throws ServletException, IOException {
      String url = "NonageServlet?command=admin_product_list";
      HttpSession session = request.getSession();
      int sizeLimit = 5 * 1024 * 1024;
      String savePath = "product_images";
      ServletContext context = session.getServletContext();
      String uploadFilePath = context.getRealPath(savePath);
      
      MultipartRequest multi = new MultipartRequest(request, // 1. 요청 객체
        uploadFilePath, // 2. 업로드될 파일이 저장될 파일 경로명
        sizeLimit, // 3. 업로드될 파일의 최대 크기(5Mb)
        "UTF-8", // 4. 인코딩 타입 지정
        new DefaultFileRenamePolicy() // 5. 덮어쓰기를 방지 위한 부분
      ); // 이 시점을 기해 파일은 이미 저장이 되었다
      
      Enumeration formNames = multi.getFileNames();
      
      ProductVO productVO = new ProductVO();
      productVO.setKind(multi.getParameter("kind"));
      productVO.setName(multi.getParameter("name"));
      productVO.setPrice1(Integer.parseInt(multi.getParameter("price1")));
      productVO.setPrice2(Integer.parseInt(multi.getParameter("price2")));
      productVO.setPrice3(Integer.parseInt(multi.getParameter("price2"))
        - Integer.parseInt(multi.getParameter("price1")));
      productVO.setContent(multi.getParameter("content"));
      productVO.setImage(multi.getFilesystemName("image"));
      productVO.setImage2(multi.getFilesystemName("image2"));
      productVO.setImage3(multi.getFilesystemName("image3"));
      productVO.setName2(multi.getParameter("name2"));
      ProductDAO productDAO = ProductDAO.getInstance();
      productDAO.insertProduct(productVO);                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
      response.sendRedirect(url);
     }
    }
    --------------------------------------------------------------------
    소스는 일단 너무 기니 여기까지 구요 더 필요하신 부분 있으면 말씀해주세요 ㅠㅠ
    제발 부탁드립니다 ㅠㅠㅠㅠ

    이 게시물을 추천한 분들의 목록입니다.
    푸르딩딩:추천수 3이상 댓글은 배경색이 바뀝니다.
    (단,비공감수가 추천수의 1/3 초과시 해당없음)

    죄송합니다. 댓글 작성은 회원만 가능합니다.

    번호 제 목 이름 날짜 조회 추천
    83
    베이스 드럼에 치킨 인형을 달아보았다 [6] 펌글 발로알겠소 18/01/09 15:51 815 10
    82
    어릴적 뇌호흡 경험담 창작글 발로알겠소 17/12/02 14:54 137 1
    80
    자꾸 뭐 이니하고 싶은거 다해에 대해 딴지 거는데 [1] 발로알겠소 17/05/16 15:16 304 5
    79
    후보님 뭐하세요~? 발로알겠소 17/04/27 17:31 266 5
    78
    7스킨을 할바에 마스크를 붙이겠다 하신분? [5] 발로알겠소 17/03/25 06:08 353 10
    77
    블루투스 이어폰 머가 더 나을까요? [3] 발로알겠소 16/09/26 07:15 49 2
    76
    사고가 났는데 실수했어요;; [6] 발로알겠소 16/07/15 23:06 168 1
    75
    오버워치 초기화 하는 방법은 없을까요?? [2] 발로알겠소 16/07/01 23:12 110 0
    74
    혹시 요런 물고기 모양 북마크 어디서 파는지 아시는분?? [4] 본인삭제금지 발로알겠소 16/06/24 15:50 63 4
    73
    이상한 메일이 왔어요;; 랜섬웨어 일까요? [3] 본인삭제금지 발로알겠소 16/06/21 18:32 111 0
    72
    자소서에 오래된 자격증 넣으면 플러스일까요? 마이너스일까요? [5] 본인삭제금지 발로알겠소 16/06/04 13:50 38 0
    71
    어릴때 봤던 공룡영화 ost를 찾아요! [2] 본인삭제금지 발로알겠소 16/05/26 12:43 15 0
    70
    저희집 강아지가 가끔씩 이상한 행동을 해요 [3] 창작글 발로알겠소 16/01/02 01:00 84 1
    69
    아이유는 앞으로 동화컨셉은 안들고오는게 좋겠어요 [3] 발로알겠소 15/11/05 20:40 234 1
    66
    [본삭금]아재들 사진을 보니 맘이 많이 흔들리네요 [26] 발로알겠소 15/05/13 23:45 110 0
    64
    어릴적 했던 고전게임 이름이 기억안나요 ㅠㅠ [4] 발로알겠소 15/04/04 07:02 134 2
    62
    골든 햄찌 키워보신 분들 좀 봐주시겠어요? [11] 발로알겠소 15/02/16 22:06 31 0
    MultiPartRequest 를 이용한 다중파일 업로드 ㅠㅠ 도와주세요 [5] 발로알겠소 15/01/29 17:29 32 0/5
    59
    jQuery 관련 책 추천해주실수있나요? [2] 발로알겠소 14/09/19 13:57 20 0
    58
    으허으어으엉ㅇ [6] 발로알겠소 14/08/17 03:24 142 0
    56
    내가 원하는 뉴스는 [2] 발로알겠소 14/04/18 02:49 145 2
    55
    가인 쌍커풀이 생겼네요 [7] 발로알겠소 14/04/14 19:33 660 0
    54
    빵!! [1] 발로알겠소 14/02/27 20:06 34 1
    [1] [2] [3]
    단축키 운영진에게 바란다(삭제요청/제안) 운영게 게시판신청 자료창고 보류 개인정보취급방침 청소년보호정책 모바일홈