Jstl, Tiles and Spring
807607Oct 21 2006 — edited Oct 21 2006Hi,
I am developing an web application just to start using these three technologies together. Mostly i would like to learn spring while developing a good and powerfull web application.
My first question is; should I use jstl, or I should use something like Velocity or FreeMarker?
My second question is mostly related on whether I can use jstl to see if I have a value set in tiles. That is do something as follows:
<c:if test="${<tiles:getAsString name='banner'>!=''}">
...
</c:if>
When I run the above code i get the following exception:
[ServletException in:/WEB-INF/pages/template1.jsp] /WEB-INF/pages/template1.jsp(4,0) "${ != ''}" contains invalid expression(s): javax.servlet.jsp.el.ELException: Encountered "<", expected one of [, , , "true", "false", "null", "(", "-", "not", "!", "empty", ]'
Is there a way to know a value from tiles inside a jstl expression? Also should I use some other expression language?
regards,
sim085