모바일 오유 바로가기
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도쿄올림픽
  • 게시판찾기
  • 게시물ID : programmer_7891
    작성자 : 발로알겠소
    추천 : 0/5
    조회수 : 2660
    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 초과시 해당없음)

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

    번호 제 목 이름 날짜 조회 추천
    23458
    [KOCCA] 2024 게임콘텐츠 제작지원 이용자평가 체험단모집 장파랑 24/11/26 16:56 185 0
    23457
    [한국콘텐츠진흥원] 2024 게임콘텐츠 제작지원 이용자평가 이용자 모집 장파랑 24/11/18 14:02 304 0
    23456
    [한국콘텐츠진흥원] 2024 게임콘텐츠 제작지원 이용자평가 이용자 모집 장파랑 24/10/28 18:24 744 0
    23455
    논문 읽는 사람들을 위한 문서 번역 서비스 rWhale 24/10/10 13:06 1059 2
    23453
    로또번호 [2] 까망사투리 24/09/19 11:10 1505 2
    23452
    AI와 함께가는 코딩 업계 [1] 펌글 우가가 24/09/02 22:19 1906 9
    23451
    Switch문 도배된 2100줄 짜리 함수 [3] 펌글 우가가 24/08/26 22:37 1805 4
    23450
    개인정보 수집 없는 이미지 리사이즈 사라밍 24/08/23 20:31 1314 0
    23449
    디자인 패턴의 템플릿 메소드 패턴 실무 적용 사례 써니썬 24/08/23 16:47 1325 1
    23448
    TMDB API Key 얻을 때 동의하게 되는 면책 및 포기 조항 우가가 24/08/18 16:07 1337 1
    23447
    펌) 아무튼 개쩌는 번역기를 국내기술로 개발완료 했다는 소식 [1] 펌글 우가가 24/08/15 17:30 1595 2
    23446
    쿠팡 가격 변동 추적 알림 서비스 피드백 요청 (제발) 창작글펌글 애오옹 24/08/10 14:30 1498 0
    23445
    넥사크로 17.1 관련 [2] 본인삭제금지 나르하나 24/08/01 12:30 1539 0
    23444
    개밯자 의자에 머리받침 없어 [1] 까망사투리 24/07/25 13:32 1859 1
    23443
    안드로이드 EditText 리스너 연동 문의드립니다. - 해결됨 [1] 창작글 상사꽃 24/07/01 17:47 1799 2
    23442
    펌) 파이어폭스 엔진이 신인 이유 [1] 펌글 우가가 24/06/30 23:25 2378 2
    23441
    예전에는 함수 하나에 대한 기능에 고민을 많이 했는데.. ssonacy 24/05/21 09:45 2175 0
    23440
    c++ 에서 DB 쿼리문처럼 사용할 방법이 있을까요? [8] 상사꽃 24/05/19 11:10 2324 0
    23439
    쉬운 배터리 알림 창작글 언젠가아자 24/05/14 10:47 2469 0
    23438
    아후 서터레스 [1] NeoGenius 24/04/02 17:52 2159 1
    23436
    로또 [3] 까망사투리 24/03/11 15:53 2795 4
    23434
    copilot 기업유료버전 intelliJ에 붙여서 쓰고있는데 지리네요 안녕월드 24/02/22 00:15 2832 0
    23433
    코딩마을 대나무숲 [6] cocoa 24/02/20 14:50 2998 5
    23432
    (질문) 프로그래머분들은 싱글PC게임 레벨제한 풀수 있죠?? [23] 본인삭제금지 할배궁디Lv2 24/02/13 13:36 2999 1
    23431
    Freemium NeoGenius 24/02/13 13:23 2458 0
    23429
    부산에서 프로그래머 구인하는데 연봉 6천에서 8천 작은건가 [3] 폴팡 24/02/04 20:50 3317 1
    23427
    chatgpt? bard? [4] 별빛러브 24/01/25 06:24 2599 0
    23426
    Next.js로 만들어봤어요~ [2] 창작글 sonnim 24/01/24 12:52 2813 3
    23425
    Spring Boot 공부하기 - 한국투자증권 오픈API 호출 옐로우황 24/01/21 17:51 2836 1
    23424
    파이썬 코딩 관련해서 질문드립니다. [5] 투투나 24/01/08 09:49 2920 0
    [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [다음10개▶]
    단축키 운영진에게 바란다(삭제요청/제안) 운영게 게시판신청 자료창고 보류 개인정보취급방침 청소년보호정책 모바일홈