Last updated by admin 4 years ago
Grails ?????????????? The Grails Custom Tag Library
Grails???????GSP?JSP??????????????????????????????????????- JSP?Java???????????GSP??????????groovy???
- GSP??????${..} ???Groovy???(eg. test="${it=='true'}")?JSP??JSTL???????????????????????
- JSP? TLD????????????????????????GSP??Grails ?????? ?? ????????????????????????JSTL??????????
- GSP????????GString????????JSP?? <c:out value="${it}" /> ???????????????????
- GSP uses groovy inside scriptlets while JSP is Java
- GSP attribute values when surrounded with the ${..} (eg. test="${it=='true'}") syntax are Groovy expressions, while in JSP these are JSTL expressions (and hence more limited)
- JSP supports custom tag libraries through the TLD while GSP supports custom tag libraries with Grails Dynamic Tag Libraries and does not support JSTL
- GSP supports GString expressions inside the content whilst JSP requires you to use <c:out value="${it}" />
- GSP Tag Reference
- JSP Tag Reference {excerpt}



