Friday, 15 March 2013

java - How sitemesh decorator works without pattern? -


I have a configuration under my decorator.

  & lt; Decorators defaultdir = "/ '& gt; & lt; decorator name =" page one "page =" page_on " Jsp "/> & lt; Decorator name =" page two "page =" page_round " Jasp "/>  ...   

me URL is not available, these decorators will come in the picture because the pattern is not defined below.

   

By default, Sitemesh uses the following logic:

  1. What page meta decorator tab ?
  2. Is the page set to a frame? If so, do not apply decorator
  3. From the top, what is the page "pageOne = true" Or if the page is two and three? If so, then use that JSP page

In this case, you only provide the parameters to apply the rule.


No comments:

Post a Comment