Usebean class attribute invalid

(The value for the useBean class attribute * is invalid.에서 넘어옴)
Question mark2.svg 해결되지 않은 문제입니다.

1 개요[ | ]

usebean class attribute invalid
The value for the useBean class attribute ___ is invalid.
  • 내가 만든 클래스를 useBean에서 사용하지 못하는 현상

2 원인[ | ]

  • 톰캣이 해당 class를 못찾는 것
  • 이클립스 Dynamic Web Project 기본 설정은...
classes 폴더는 프로젝트/build 폴더 아래에 놓이게 됨
Project Explorer에서 build 폴더 아래에 있는 것을 숨김.
  • 톰캣이 useBean을 사용할 때 프로젝트/WebContent/WEB-INF/classes 를 참조한다고 하는데…
Default output folder를 바꿔봐도 안된다.
server.xml을 바꿔봐도 안된다.

해당 프로젝트에 우클릭후 설정에 들어간후 Java Build Path 를 선택 하고 source 탭을 누르고 Browser.. 누른다 그리고 나서 WebContent 하위에 있는 WEB-INF 선택해 새폴더를 만드는데 Class 나 Classes 생성해보자

3 오류 메시지[ | ]

5월 18, 2013 8:19:17 오후 org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /jsp/showProductDetail.jsp (line: 3, column: 0) The value for the useBean class attribute to.ProductTO is invalid.
	at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:42)
	at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:408)
	at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:149)
... (생략)

4 같이 보기[ | ]

5 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}