MultipartHttpServletRequest를 사용하고 싶습니다..
- 작성자 :
- 최*원
- 작성일 :
- 2010-11-06 18:25:17
- 조회수 :
- 3,401
- 구분 :
- 실행환경
- 진행상태 :
- 완료
Q
가이드의 파일관리를 보고 작성중입니다.
context-common.xml
context-properties.xml
두가지는 잘 입력 하였습니다.
@RequestMapping
public String addFind(
final MultipartHttpServletRequest multiRequest
,Map commandMap
,Model model
,SessionStatus status
)throws Exception {
}
컨트롤러에서는 이런식으로 작성되어 있는데 처음 함수 호출 되는 즉시 에러가 납니다.
java.lang.IllegalStateException: Standard argument type [org.springframework.web.multipart.MultipartHttpServletRequest] resolved to incompatible value of type [class egovframework.rte.ptl.mvc.filter.HTMLTagFilterRequestWrapper]. Consider declaring the argument type in a less specific fashion.
어떤게 문제일까요..
context-common.xml
context-properties.xml
두가지는 잘 입력 하였습니다.
@RequestMapping
public String addFind(
final MultipartHttpServletRequest multiRequest
,Map commandMap
,Model model
,SessionStatus status
)throws Exception {
}
컨트롤러에서는 이런식으로 작성되어 있는데 처음 함수 호출 되는 즉시 에러가 납니다.
java.lang.IllegalStateException: Standard argument type [org.springframework.web.multipart.MultipartHttpServletRequest] resolved to incompatible value of type [class egovframework.rte.ptl.mvc.filter.HTMLTagFilterRequestWrapper]. Consider declaring the argument type in a less specific fashion.
어떤게 문제일까요..
A
안녕하세요.. 최상원님..
우선.. 입력 JSP의 form에 다음과 같이 enctype 속성이 등록되었는지 확인해 보십시오.
<form ... enctype="multipart/form-data">
그래도 오류가 발생하면 web.xml에 있는 HTMLTagFilter filter 설정을 삭제하시기 바랍니다.
(HTMLTagFilter filter는 "<"와 같은 tag를 "<"와 같이 변환하여 처리하는 것으로 첨부의 경우 무시되고, 일반 적인 경우는 <c:out ../>을 통해 변환되기 때문에 특별한 경우 이외에는 필요치 않습니다.)
그럼.. 즐거운 하루되십시오.
감사합니다.
우선.. 입력 JSP의 form에 다음과 같이 enctype 속성이 등록되었는지 확인해 보십시오.
<form ... enctype="multipart/form-data">
그래도 오류가 발생하면 web.xml에 있는 HTMLTagFilter filter 설정을 삭제하시기 바랍니다.
(HTMLTagFilter filter는 "<"와 같은 tag를 "<"와 같이 변환하여 처리하는 것으로 첨부의 경우 무시되고, 일반 적인 경우는 <c:out ../>을 통해 변환되기 때문에 특별한 경우 이외에는 필요치 않습니다.)
그럼.. 즐거운 하루되십시오.
감사합니다.