화면에서
<spring:message code="message.test" />
가
<spring:message code="message.test" />
으로 소스에서 보였다.
난 이게
message.test 라는 메시지가
프로퍼티파일에 정의되지 않아 생기는 문제라고 생각했다..
하지만 그게 문제가 아니라
이 메시지가
<form:input path="test" size="512" maxlength="512" cssStyle="width:70%" alt="<spring:message code='message.test' /> " title="<spring:message code='message.test' /> " cssClass="inputRead" readonly="true"/>
와 같은 형태로
form:input 안에 있어서 생긴문제다
이에 대한 해결책으로
출처 : http://stackoverflow.com/questions/11736150/how-to-make-fmtformatdate-work-for-forminput
와 같이
<fmt:formatDate value="transactions['${loopStatus.index}'].valueTransactionDate"
type="date"
pattern="yyyy-MM-dd"
var="theFormattedDate" />
<form:input type="text" path="..." value="${theFormattedDate}"/>
별도로 변수를 선언해서 하는 방법이 있다..
하지만 솔직히 귀찮다는 점을 부정할수는 없는듯하다.
'개인적인 프로그램 > JAVA/JSP' 카테고리의 다른 글
java: what is this: [Ljava.lang.Object;? (0) | 2013.03.14 |
---|---|
실무에서 EL을 쓸떄의 주의사항 (0) | 2013.03.13 |
내가 생각하는 sitemesh의 장단점 (0) | 2013.03.11 |
파일을 하나의 통합테이블로 관리하는 것에 대해서 (0) | 2013.03.11 |
The import collides with another import statement 라는 에러 (0) | 2013.03.04 |