i using sitemesh 2.4.2 spring frameworks 4.1. ui built head/content/footer style.
which fine situation. when try generate printable view, found can't it, jsp wrapped in style.
how can not apply sitemesh decorators? request plain jsp directly without using mav style put in decorated frames.
edit
i tried follow instruction by
http://wiki.sitemesh.org/wiki/display/sitemesh/decorating+beyond+url+patterns i added printable mapper sitemesh.xml as:
<mapper class="com.opensymphony.module.sitemesh.mapper.printabledecoratormapper"> <param name="decorator" value="printable" /> <param name="parameter.name" value="printable" /> <param name="parameter.value" value="true" /> </mapper> and add meta jsp header as:
<meta name="decorator" content="printable"> and tried pass parameter in controller such as:
mav.setviewname("/web-inf/sitemesh-decorators/printableview.jsp?decorator=printable&"); the result same, frames (header, footer) still here.
any idea?? please help!
after couple of weeks thinking , trying, give fix.
accidentally, found printable jsp url not expected don't see parameter "printable=true". suddenly, found out why, may 1 else in situation.
in situation, used modelandview bring printable view spring mvc controller using ".setviewname" call , put parameter in jsp appended "printable=true" @ end. totally wrong.
the correct way is: have put "printable=true" @ end of request mapping path when call controller other jsp. when did it, printable view displayed expected.
this looks like:
<a class="button" href="${pagecontext.request.contextpath}/printplacemententitybypartner?placementidkey=${placemententity.placementid}&printable=true&"> hope 1 else when in situation.
Comments
Post a Comment