error, issue, RnD, notes for my colleagues ... anything related with my job. A good programmer should be a good and fast reader. This log just to cut the costs of my RnD. Nothing personal :)
Monday, 8 April 2013
Webflow: SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'set'.
SEVERE: Servlet.service() for servlet apr threw exception
org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'set'. One of '{"http://www.springframework.org/schema/webflow":attribute}' is expected.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)
Dapat agak error ni sebab salah letak attribut, tapi jenuh jugak la nak cari. Hilang setengah hari.
Rupa2nya sebab ini:
<evaluate expression="studyPlanFrmService.saveStudyPlan(flowScope.studyPlanForm)" result="flowScope.studyPlanform">
<set name="flowScope.msj" value="flowScope.studyPlanForm.formMessage" ></set>
</evaluate>
<set></set> tak boleh diletak dalam <evaluate></evaluate> ???
Tak kisahlah, asal jalan kod aku.
Sunday, 7 April 2013
org.apache.commons.lang.time.DateUtils
Tugas hari ini adalah untuk set tarikh berdasarkan bilangan bulan daripada tarikh tertentu
Alhamdulillah, dapati bahwa class di bawah ini mempunyai function yang diperlukan. Tiba masa untuk test.
org.apache.commons.lang.time.DateUtils
Friday, 5 April 2013
Displaytag: nested tables in 1 row
Salah satu function nak kena buat ialah display nested array list.
Nanti2 la kaji.
Rujukan:
http://stackoverflow.com/questions/11358422/how-to-show-nested-array-lists-using-display-tag-on-jsp
Nanti2 la kaji.
Rujukan:
http://stackoverflow.com/questions/11358422/how-to-show-nested-array-lists-using-display-tag-on-jsp
Thursday, 4 April 2013
Spring Security: @ converted to "@ ;" when login failed
Selepas ikut teknik flow ini, tiada masalah dah.
http://stackoverflow.com/questions/15052860/spring-security-authentication-get-username-without-spring-security-last-userna
http://stackoverflow.com/questions/15052860/spring-security-authentication-get-username-without-spring-security-last-userna
Subscribe to:
Posts (Atom)