Page directive has invalid attribute: contenttype
HTTP Status 500 - /deliverprice.jsp (line: 1, column: 2) Page directive has invalid attribute: contenttype
type Exception report
message /deliverprice.jsp (line: 1, column: 2) Page directive has invalid attribute: contenttype
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: /deliverprice.jsp (line: 1, column: 2) Page directive has invalid attribute: contenttype org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:42) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:443) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:199) org.apache.jasper.compiler.JspUtil.checkAttributes(JspUtil.java:201) org.apache.jasper.compiler.Validator$DirectiveVisitor.visit(Validator.java:108) org.apache.jasper.compiler.Node$PageDirective.accept(Node.java:589) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2375) org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2427) org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2433) org.apache.jasper.compiler.Node$Root.accept(Node.java:474) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2375) org.apache.jasper.compiler.Validator.validateDirectives(Validator.java:1777) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:195) org.apache.jasper.compiler.Compiler.compile(Compiler.java:373) org.apache.jasper.compiler.Compiler.compile(Compiler.java:353) org.apache.jasper.compiler.Compiler.compile(Compiler.java:340) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:657) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.52 logs.
invalid attribute : 에러내용
http://blog.naver.com/PostView.nhn?blogId=incunv&logNo=120059092675&parentCategoryNo=&categoryNo=2&viewDate=&isShowPopularPosts=false&from=postView
jeus.servlet.jsp.JspEngineException ...invalid attribute:Type
invalid attribute :Type구문에서 보면 속성타입이 잘못 되었다고 나온다
해결책 : 맨위에 <%@ page contentType="text/html; charset=EUC-KR" %>를
<%@ page Type="text/html; charset=EUC-KR" %>로 선언해서 나온 에러이다
또는 아래처럼 contentType의 'c'를 대문자로 써도 같은 에러가 발생하니
<%@ page ContentType="text/html; charset=EUC-KR" %>
'차근차근 > JAVA JSP' 카테고리의 다른 글
[JSP] jspf란 (0) | 2014.07.29 |
---|---|
[JSP] page contentType 설정 (0) | 2014.07.29 |
[JSP] 메타태그 (0) | 2014.07.26 |
[JSP] JSP와 자바스크립트간의 정보 전송방법 (0) | 2014.07.26 |
Generic함수 (0) | 2014.07.26 |