Friday, 15 July 2011

jsp - apache tiles: expression language stopped to work with maven -



jsp - apache tiles: expression language stopped to work with maven -

i had spring-3.2.1/tiles-3.0.1 project had look language working tiles. means expressions such ${jukebox.name} worked in tile attribute expressions (and printed metal jukebox example). tiles.xml file:

<definition name="t.jukebox" extends="t.base"> <put-attribute name="body" value="/web-inf/jsp/jukebox.jsp"/> <put-attribute name="title" expression="${jukebox.name} - lyricsbase"/> </definition> <definition name="t.song" extends="t.base"> <put-attribute name="body" value="/web-inf/jsp/song.jsp"/> <put-attribute name="title" expression="${song.title} - ${song.author} in ${jukebox.name}"/> </definition> <definition name="t.static/about" extends="t.base"> <put-attribute name="body" value="/web-inf/static/about.jsp"/> <put-attribute name="title" value="lyricsbase: about"/> </definition>

my controllers next - object passed layout , has getter methods (e.g. getname()):

public modelandview handlerequest( httpservletrequest httpservletrequest, httpservletresponse httpservletresponse) throws exception { homecoming new modelandview("t.jukebox", "jukebox", facade); }

everything working fine. recently, decided move maven. after work done, dependencies fixed , builds successful, lost dynamic tiles expressions functionality , can't find reason. people suggest add

<%@ page iselignored="false" %>

to page, don't know exactly. base of operations tile layout or child? i've got 1 include.jsp, included jsp files, have taglibs, adding elignored=false didn't help.

it's probable maven has nil this, don't know solution.

well, had maven though. forgot add together dependency on tiles-el.jar. no exception thrown - , create hard spot problem. another post

jsp maven el tiles

No comments:

Post a Comment