Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Jstl, Tiles and Spring

807607Oct 21 2006 — edited Oct 21 2006
Hi,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 18 2006
Added on Oct 21 2006
5 comments
583 views