달력

03

« 2010/03 »

  •  
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  •  
  •  
  •  
System.out.println( System.getProperty("java.class.path") );


eclipse에서 잡은 환경변수 찾기 
classpath 만들기용 and 메모용
저작자 표시
Posted by 싸구려코드
tomcat작업시 parameter 전송때마다 로그에 기록되는 다음과 같은 메세지 제거 방법
Jun 22, 2008 12:05:15 AM org.apache.tomcat.util.http.Parameters processParameters
WARNING: Parameters: Invalid chunk ignored. remove




1. tomcat설치경로/conf/logging.properties 편집
2. org.apache.tomcat.util.http.Parameters.level = SEVERE 추가

tomcat 재시작...



출처 : 구글링...
TAG JSP, tomcat
Posted by 싸구려코드

<%
 String cmd = request.getParameter("cmd");
 
 if (cmd != null && cmd.equals("loginUserForm"))
 {
%>
  <jsp:include page="./user/loginUserForm.jsp" />
 
<%
 }  
%>



<%
 String cmd = request.getParameter("cmd");
 
 if (cmd == null) cmd = "main";
 
 if (cmd.equals("loginUserForm"))
 {
%>
  <jsp:include page="./user/loginUserForm.jsp" />
 
<%
 }  
%>

기본 nullpointer exception 처리.

조건검사를 한번 하던가... 디폴트 값 입력으로 일단 해결~
Posted by 싸구려코드
2007/04/18 09:45

[Servlet] Redirection! Computer/IT/JSP2007/04/18 09:45

RequestDispatcher rd = null;
 
  rd = getServletContext().getRequestDispatcher("/mainFrame.jsp");
  rd.forward(request, response);
 

Servlet  Redirection Example

'Computer/IT > JSP' 카테고리의 다른 글

[JSP] WARNING: Parameters: Invalid chunk ignored. remove  (0) 2008/06/23
[JSP] getParameter null pointer exception  (0) 2007/04/18
[Servlet] Redirection!  (0) 2007/04/18
[JSP] Java Beans(자바빈)  (0) 2006/10/01
[JSP] URLEncoder  (0) 2006/09/30
[JSP] page redirect  (0) 2006/09/30
Posted by 싸구려코드
2006/10/01 18:39

[JSP] Java Beans(자바빈) Computer/IT/JSP2006/10/01 18:39

  1. public class BeanClassName implements java.io.Serializable {
  2.   /* 값을 저장하는 필드 */
  3.   private String value;
  4.   /* BeanClassName의 기본 생성자 */
  5.   public BeanClassName() {
  6.   }
  7.   /* 필드의 값을 get Method */
  8.   public String getValue() {
  9.     return value;
  10.   }
  11.   /* 필드의 값을 set Method */
  12.   public String setValue(String value) {
  13.     this.value = value;
  14.   }
  15. }

자바빈 기본형

'Computer/IT > JSP' 카테고리의 다른 글

[JSP] getParameter null pointer exception  (0) 2007/04/18
[Servlet] Redirection!  (0) 2007/04/18
[JSP] Java Beans(자바빈)  (0) 2006/10/01
[JSP] URLEncoder  (0) 2006/09/30
[JSP] page redirect  (0) 2006/09/30
[JSP] request method list  (0) 2006/09/30
Posted by 싸구려코드
2006/09/30 23:39

[JSP] URLEncoder Computer/IT/JSP2006/09/30 23:39

  1. <%@ page contentType="text/html; charset=euc-kr" %>
  2. <%@ page import="java.net.URLEncoder" %>
  3. <html>
  4. <head><title>URLEncoder</title></head>
  5. <body>
  6. <%
  7.   String value = "JSP하자";
  8.   String encoded = URLEncoder.encode(value);
  9.   response.sendRedirect("filename.jsp?name=" + encoded);
  10. %>
  11. </body>
  12. </html>
 

'Computer/IT > JSP' 카테고리의 다른 글

[Servlet] Redirection!  (0) 2007/04/18
[JSP] Java Beans(자바빈)  (0) 2006/10/01
[JSP] URLEncoder  (0) 2006/09/30
[JSP] page redirect  (0) 2006/09/30
[JSP] request method list  (0) 2006/09/30
[JSP] JSP 필수 Directive  (0) 2006/09/30
Posted by 싸구려코드
2006/09/30 22:49

[JSP] page redirect Computer/IT/JSP2006/09/30 22:49

  1. <%@ page contentType="text/html; charset=euc-kr" %>
  2. <html>
  3. <head><title>Response.sendRedirect</title></head>
  4. <body>
  5. <%
  6.   response.sendRedirect("http://www.naver.com");
  7. %>
  8. </body>
  9. </html>
 

'Computer/IT > JSP' 카테고리의 다른 글

[JSP] Java Beans(자바빈)  (0) 2006/10/01
[JSP] URLEncoder  (0) 2006/09/30
[JSP] page redirect  (0) 2006/09/30
[JSP] request method list  (0) 2006/09/30
[JSP] JSP 필수 Directive  (0) 2006/09/30
JSP request. 들의 메소드  (0) 2006/04/13
Posted by 싸구려코드
2006/09/30 22:32

[JSP] request method list Computer/IT/JSP2006/09/30 22:32

 
  1. <%@ page contentType="text/html; charset=euc-kr" %>
  2. <html>
  3. <head><title>Request 정보</title></head>
  4. <body>
  5. 클라이언트 IP =      <%= request.getRemoteAddr() %> <br>
  6. 요청정보길이 =      <%= request.getContentLength() %> <br>
  7. 요청정보 인코딩 =    <%= request.getCharacterEncoding() %> <br>
  8. 요청정보 컨텐츠 타입 = <%= request.getContentType() %> <br>
  9. 요청정보 프로토콜 =  <%= request.getProtocol() %> <br>
  10. 요처정보 전송방식 =  <%= request.getMethod() %> <br>
  11. 요청 URI =        <%= request.getRequestURI() %> <br>
  12. 컨텍스트 경로 =   <%= request.getContextPath() %> <br>
  13. 서버이름 =        <%= request.getServerName() %> <br>
  14. 서버포트 =        <%= request.getServerPort() %>
  15. </body>
  16. </html>
 

'Computer/IT > JSP' 카테고리의 다른 글

[JSP] URLEncoder  (0) 2006/09/30
[JSP] page redirect  (0) 2006/09/30
[JSP] request method list  (0) 2006/09/30
[JSP] JSP 필수 Directive  (0) 2006/09/30
JSP request. 들의 메소드  (0) 2006/04/13
Calendar 를 이용한 날짜 출력  (0) 2006/04/07
Posted by 싸구려코드
2006/09/30 22:10

[JSP] JSP 필수 Directive Computer/IT/JSP2006/09/30 22:10

<%@ page contentType="text/html; charset=euc-kr" %>


<%@ page contentType="text/html; charset=UTF-8" %>

'Computer/IT > JSP' 카테고리의 다른 글

[JSP] URLEncoder  (0) 2006/09/30
[JSP] page redirect  (0) 2006/09/30
[JSP] request method list  (0) 2006/09/30
[JSP] JSP 필수 Directive  (0) 2006/09/30
JSP request. 들의 메소드  (0) 2006/04/13
Calendar 를 이용한 날짜 출력  (0) 2006/04/07
Posted by 싸구려코드
2006/04/13 16:37

JSP request. 들의 메소드 Computer/IT/JSP2006/04/13 16:37

  1. <%@ page contentType = "text/html; charset=euc-kr" %>
  2. <head><title> 클라이언트 및 서버 정보</title></head>
  3. 클라이언트IP = <%= request.getRemoteAddr() %> <br>
  4. 요청정보길이 = <%= request.getContentLength() %> <br>
  5. 요청정보 인코딩 = <%= request.getCharacterEncoding() %> <br>
  6. 요청정보 컨텐트타입 = <%= request.getContentType() %> <br>
  7. 요청정보 프로토콜 = <%= request.getProtocol() %> <br>
  8. 요청정보 전송방식 = <%= request.getMethod() %> <br>
  9. 요청 URI = <%= request.getRequestURI() %> <br>
  10. 컨텍스트 경로 = <%= request.getContextPath() %> <br>
  11. 서버이름 = <%= request.getServerName() %> <br>
  12. 서버포트 = <%= request.getServerPort() %> <br>
  13. </body>
  14. </html>

'Computer/IT > JSP' 카테고리의 다른 글

[JSP] URLEncoder  (0) 2006/09/30
[JSP] page redirect  (0) 2006/09/30
[JSP] request method list  (0) 2006/09/30
[JSP] JSP 필수 Directive  (0) 2006/09/30
JSP request. 들의 메소드  (0) 2006/04/13
Calendar 를 이용한 날짜 출력  (0) 2006/04/07
TAG JSP, Request
Posted by 싸구려코드
2006/04/07 15:23

Calendar 를 이용한 날짜 출력 Computer/IT/JSP2006/04/07 15:23

  1. <%@ page contentType = "text/html;charset=euc-kr" %>
  2. <%@ page import = "java.util.Calendar" %>
  3. <head><title>Calendar 클래스 사용</title></head>
  4. <% Calendar cal = Calendar.getInstance(); %>
  5. 오늘은
  6. <%=cal.get(Calendar.YEAR) %>
  7. <%=cal.get(Calendar.MONTH)+1 %>
  8. <%=cal.get(Calendar.DATE) %> 일 입니다.
  9. </body>
  10. </html>
 

'Computer/IT > JSP' 카테고리의 다른 글

[JSP] URLEncoder  (0) 2006/09/30
[JSP] page redirect  (0) 2006/09/30
[JSP] request method list  (0) 2006/09/30
[JSP] JSP 필수 Directive  (0) 2006/09/30
JSP request. 들의 메소드  (0) 2006/04/13
Calendar 를 이용한 날짜 출력  (0) 2006/04/07
Posted by 싸구려코드