Programming/php2014. 3. 28. 23:50
jsp 하다 보니 
조금 더 시간을 들여서 php까지 하는게 좋을거 같아서 링크 저장

[링크 : http://docs.php.net/manual/en/]
[링크 : http://docs.php.net/manual/kr/index.php

'Programming > php' 카테고리의 다른 글

php 로그인 예제  (0) 2014.05.19
php framework / 읽을꺼리  (0) 2014.04.09
php $_SERVER 변수  (0) 2013.07.07
index.php가 다운받아지는 문제점 -_-  (0) 2013.02.22
php ++,-- 연산자  (0) 2012.12.03
Posted by 구차니
후~ ㅋㅋㅋ


Posted by 구차니
Programming/jsp2014. 3. 28. 21:46
<% 와는 다른 형태를 지닌 액션 태그란 녀석..
정식명칭인지 모르겠지만 은근히 검색이 잘 안나온다 ㅠㅠ

아마도.. 정식명칭은 JSP tag중 actions 인거 같기도 하고..
[링크 : http://docs.oracle.com/cd/E13222_01/wls/docs81/jsp/reference.html]

아무튼 request나 pagecontext와의 스코프는 테스트가 필요..
 
<jsp:include
include는 소스가 아닌 결과를 삽입
일반적으로 flush=false로 작업함 

<%@ include
include directive는 소스를 불러옴(차이점 주의!) 


<jsp:forward>
접속한 파일에서 다른 파일로 forward해서 다른 파일에서 응답을 처리함

Redirect - 느림, request 객체 재사용 불가
forward - 빠름, request 객체 재사용 가능URL이 변경되지 않음
[링크 : http://hdm6337.tistory.com/entry/Redirect-와-Dispatcher-Forward-의-차이] 

<jsp:include>
<jsp:param>
</jsp:include>
포함되는 문서에 파라미터 전달하기 

웹서버 레벨에서 header와 footer를 추가하는 기능 
<jsp-config>
   <jsp-property-group>
     <display-name>WebLogicServer</display-name>
     <url-pattern>*.jsp</url-pattern>
     <el-ignored>false</el-ignored>
     <scripting-invalid>false</scripting-invalid>
     <is-xml>false</is-xml>
     <include-prelude>/template/prelude.jspf</include-prelude>
     <include-coda>/template/coda.jspf</include-coda>
   </jsp-property-group>
 </jsp-config>
 
preludes (also called headers) and codas (also called footers)
[링크 : http://docs.oracle.com/cd/E11035_01/wls100/webapp/configurejsp.html] 




'Programming > jsp' 카테고리의 다른 글

jsp action tag / <jsp:useBean  (0) 2014.03.31
jsp cookie  (0) 2014.03.31
jsp error 페이지 사이즈 제한(IE)  (0) 2014.03.27
jsp buffer  (0) 2014.03.27
jsp - page / request / session / applicaton  (0) 2014.03.27
Posted by 구차니
개소리 왈왈/블로그2014. 3. 28. 16:41
월 10000 쿼리 이하면 무료라는데
하루 2000명 오는 상황이니 그거 이상 쿼리일꺼야 앙대 ㅠㅠ

[링크 : http://blog.kr.dnsever.com/?p=206]
Posted by 구차니
2층에서 전시를 했으나 시간이 없어서 방문하지 못해 다시 들렀다

2층으로 가는 입구








여기 부터는 설치 예술이라고 해야하나?
4대의 어안렌즈 빔프로젝터를 이용해서
전방위 출력을 하고 있다. 천장의 한글은 계속 변화하여 색다른 느낌을 준다.


막다른 길에 있는 설치/인터렉티브 작품
앞에서 불러주는대로 타자기를 쳐주고, 원한다면 타자를 칠 수 도 있다.
아래 늘어진 내용에는 작가들이 친 것도 있어어서
작품의 규칙인 "앞이 내용 이어서 쓰기"는 참.. 난이도가 하늘을 찌른다 -_-a


한자한자 밀어서 찍어주어야 그 힘으로 종이에 찍히기에
지금처럼 살짝 눌러서 치는 사람들은 적응하기 힘들지만 타자기 나름의 맛이 있어서 소장하고 싶기도 ^^;
아무튼 ㅜㅠ ㅗㅛ와 같이 아래로 가는 중성 모음과 받침 자음은 "받침"을 누르고 입력해야 하는데
그 방법이 익숙하지 않아 자꾸만 오타를 내서 문장이어가기 보다는 입력에 집중해야 하는 문제가 ㅋㅋ


가장 마지막 전시


서울역 옥상에 설치된 문구
"그곳에 마땅히 인생이 있을게다."

 
사진 촬영이 금지되었던 전자 키보드를 이용한 피아노-빔 프로젝터도 좋았지만
피아노를 칠줄 모르는 내가 이렇게 원망스러울 줄이야 ㅠㅠ 

'개소리 왈왈 > 사진과 수다' 카테고리의 다른 글

never naver!  (0) 2014.04.06
370번 타요버스!  (0) 2014.04.04
충정로 - 서대문 그리고 서울역  (0) 2014.03.25
DDP - 동대문 디자인 플라자  (0) 2014.03.25
뭘 보냐 닝겐  (2) 2014.03.19
Posted by 구차니
개소리 왈왈/컴퓨터2014. 3. 28. 01:27
설마했는데.. 이 녀석이 랜카드 칩셋일줄이야 -_-
그나저나.. 안테나는 어디 숨어 있나?


구조로는 상단에 BGA로 되어있고
전원은 파워칩을 통해서 직접 On/Off 하는 것으로 생각된다.


현재 문제점은 무선AP가 10개 이상 잡힐 경우 빈번하게 죽는 건데..
조금 더 많이 사용하며 테스트 해봐야 겠지만
드라이버를 8.75.812.825 에서 8.75.813.830로 업데이트 하면서 조금 완화된 기분이다.
(개인적인 추측으로는 드라이버 버그로 인해 AP 목록이 일정 갯수를 넘어가면 드라이버 내부 변수가 넘치면서 
블루스크린 뜨며 IRQ_NOT_LESS_OR_EQUAL 오류를 띄우는 듯?)

2014.03.30 추가
멀 하든.. AP가 10개 이상 뜨면 죽는건 똑같네.. ㅠㅠ



[링크 : http://spc9999.blog.me/104100447]

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

HP 2710p 지름 ㅋㅋ  (0) 2014.05.03
heartbleed bug!!  (0) 2014.04.09
엠북 180도 펼치기 개조  (0) 2014.03.26
umid mbook m1 배터리 교체  (2) 2014.03.19
umid mbook 관련 파일방  (2) 2014.03.14
Posted by 구차니
embeded/AVR (ATmega,ATtiny)2014. 3. 27. 23:53
Page 라는 개념이 와닫지 않아서 고민하다가 무릅을 탁!치게 하는 데이터시트 발견 ㅋㅋㅋ
일단 Column는 열에 대한 X축 값이고
Page address와 Line address를 통해 Y축에 대한 값을 설정한다.

폰트 데이터는 아래서 위로 가장 왼쪽 부터 1byte씩 사용 될 것으로 생각되며(물론 높이가 5x8 이런 폰트일 경우)
Page는 이렇게 1개의 데이터 전송에 묶여 사용된다.


'embeded > AVR (ATmega,ATtiny)' 카테고리의 다른 글

AVR Studio / AVRdude 연동  (0) 2015.03.12
AVRISP 호환 제품 ?  (0) 2015.03.11
avr glcd (122x32) 소스  (2) 2014.03.27
ATmega128 핀입력 threshold / hysteresis  (0) 2014.03.24
Atmel AVR 라인트레이서 및 IR 관련 링크  (0) 2014.03.22
Posted by 구차니
Programming/jsp2014. 3. 27. 21:01
jsp를 통해 에러 메시지를 변경할 수 있는데
HTTP/500 에러의 경우 RFC 문서에 512byte 이상이 되도록 규정이 되어 있고
512 바이트 이하일 경우 IE에 내장된 에러 메시지로 출력하게 된다고 한다.


 Several frequently-seen status codes have "friendly" error messages that Internet Explorer 5.x displays and that effectively mask the actual text message that the server sends. However, these "friendly" error messages are only displayed if the response that is sent to the client is less than or equal to a specified threshold. For example, to see the exact text of an HTTP 500 response, the content length must be greater than 512 bytes.

[링크 : http://support.microsoft.com/kb/294807

해결책으로는
1. ie 설정변경
  • In Internet Explorer 5.x and 6.x, on the Tools menu, click Internet Options.
  • On the Advanced tab, under the Browsing section, click to clear the Show friendly HTTP error messages check box, and then click OK. 
  • 2. 강제로 513 바이트 이상이 되도록 더미 데이터를 붙이는 방법이 있다.

    1번에서 Show friendly HTTP error message는 한글로 "HTTP 오류 메시지 표시"로 번역된 듯?


    'Programming > jsp' 카테고리의 다른 글

    jsp cookie  (0) 2014.03.31
    jsp 액션 태그 - <jsp:  (0) 2014.03.28
    jsp buffer  (0) 2014.03.27
    jsp - page / request / session / applicaton  (0) 2014.03.27
    JSP에서 euc-kr로 할 경우 저장이 안되는 한글이 있다?  (0) 2014.03.26
    Posted by 구차니
    Programming/jsp2014. 3. 27. 19:43
    jsp 파일에서 page를 통해 buffer를 설정이 가능하다.
    기본값은 8K 에 autoFlush(=true) 하도록 되어 있다.
    <%@ page contentType="text/html; charset=euc-kr"%>
    <%@ page buffer="16kb" autoFlush="false"%> 

    jsp 파일에서 설정된 내용은 java/class로 변환되는데 
    public void _jspService(HttpServletRequest request, HttpServletResponse response)
            throws java.io.IOException, ServletException {

        PageContext pageContext = null;
        HttpSession session = null;
        ServletContext application = null;
        ServletConfig config = null;
        JspWriter out = null;
        Object page = this;
        JspWriter _jspx_out = null;
        PageContext _jspx_page_context = null;


        try {
          response.setContentType("text/html; charset=EUC-KR");
          pageContext = _jspxFactory.getPageContext(this, request, response,
           null, true, 8192, true);
          _jspx_page_context = pageContext;
          application = pageContext.getServletContext();
          config = pageContext.getServletConfig();
          session = pageContext.getSession();
          out = pageContext.getOut();
          _jspx_out = out; 

    javax.servlet.jsp.JspFactory.getPageContext() 메소드를 통해 설정하게 된다.
    java.lang.Object
      extended by javax.servlet.jsp.JspFactory
     
    public abstract PageContext getPageContext(Servlet servlet,
                                               ServletRequest request,
                                               ServletResponse response,
                                               String errorPageURL,
                                               boolean needsSession,
                                               int buffer,
                                               boolean autoflush)
     
    [링크 : http://docs.oracle.com/javaee/5/api/javax/servlet/jsp/JspFactory.html#getPageContext(...)

    Posted by 구차니
    Programming/jsp2014. 3. 27. 19:32
    jsp의 scope가 있는데
    page는 하나의 페이지에 대해서 유효
    request는 HTTP request 에 대해서 유효
    session은 HTTP session에 대해서 유효
    applicatoin은 WAS에 대해서 유효한 값 범위를 지닌다.

    조금 다르게 설명을 하면
    page는 단일 jsp 파일 하나에 대한
    request는 jsp 파일 하나에서 링크로 이어지는 파일까지
    session은 웹 브라우저에서 서버로 접속한 세션이 유효한 동안(주로 로그인 인증에 사용)
    application은 웹 서버에서 서비스 하는 하나의 전체 홈페이지에 대해서 유효하다.


    There are four possible scopes:
    • scope="page" (default scope): The object is accessible only from within the JSP page where it was created. A page-scope object is stored in the implicitpageContext object. The page scope ends when the page stops executing.

      Note that when the user refreshes the page while executing a JSP page, new instances will be created of all page-scope objects.

    • scope="request": The object is accessible from any JSP page servicing the same HTTP request that is serviced by the JSP page that created the object. A request-scope object is stored in the implicit request object. The request scope ends at the conclusion of the HTTP request.

    • scope="session": The object is accessible from any JSP page that is sharing the same HTTP session as the JSP page that created the object. A session-scope object is stored in the implicit session object. The session scope ends when the HTTP session times out or is invalidated.

    • scope="application": The object is accessible from any JSP page that is used in the same Web application as the JSP page that created the object, within any single Java virtual machine. The concept is similar to that of a Java static variable. An application-scope object is stored in the implicitapplication servlet context object. The application scope ends when the application itself terminates, or when the JSP container or servlet container shuts down.

    [링크 : http://docs.oracle.com/cd/B14099_19/web.1012/b14014/genlovw.htm

    Scope is nothing but lifetime object 

    1.page - only in the particular jsp
    2.request- only in the jsp to which you forward your request object
    3.session- it is available until the session is invalidate(you can access it from any jsp)
    4.application-it is available until the web application or server shutdown(you can access it from any jsp).available through whole application
     
    [링크 : http://www.coderanch.com/.../certification/Page-Scope-request-Scope-session

    [링크 : http://docs.oracle.com/javaee/1.4/api/javax/servlet/jsp/PageContext.html]
    [링크 : http://www.java-samples.com/showtutorial.php?tutorialid=1009]

    'Programming > jsp' 카테고리의 다른 글

    jsp error 페이지 사이즈 제한(IE)  (0) 2014.03.27
    jsp buffer  (0) 2014.03.27
    JSP에서 euc-kr로 할 경우 저장이 안되는 한글이 있다?  (0) 2014.03.26
    JSP 기본 문법  (0) 2014.03.26
    웹 서버 및 서비스 개요(java/jsp)  (0) 2014.03.26
    Posted by 구차니