How to the set paths and decorators dynamically

已查看 53 次
跳至第一个未读帖子

Hasif

未读,
2011年11月18日 00:31:582011/11/18
收件人 SiteMesh 3 Users
Hi,
I am configuring SiteMesh using Java. My of some my pages are accessed
by string concatenation to the URL. So the url changes dynamically.
Different string to the URL directs users to different pages with
different decorators. So how can this be done.

Here is code for my filter class.

public class SiteMeshFilter extends ConfigurableSiteMeshFilter {

@Override
protected void applyCustomConfiguration(SiteMeshFilterBuilder
builder){

builder.addDecoratorPath("/client/*", "/decorators/
clientStyleDecorator.jsp");
builder.addDecoratorPath("/*", "/decorators/decorator.jsp");
}
}

Any help will be appreciated. Thanks in advance :)

回复全部
回复作者
转发
0 个新帖子