Source code: com/sitemesh/taglib/decorator/UsePageTEI.java
1 package com.sitemesh.taglib.decorator;
2
3 import javax.servlet.jsp.tagext.*;
4
5 /**
6 * TagExtraInfo implementation to expose Page object as variable.
7 *
8 * @author <a href="joe@truemesh.com">Joe Walnes</a>
9 * @version $Revision: 1.2 $
10 *
11 * @see com.sitemesh.taglib.decorator.UsePage
12 * @see com.sitemesh.taglib.decorator.UseHTMLPageTEI
13 */
14 public class UsePageTEI extends TagExtraInfo {
15
16 protected String getType() {
17 return "com.sitemesh.Page";
18 }
19
20 public VariableInfo[] getVariableInfo( TagData data ) {
21 String id = data.getAttributeString( "id" );
22 return new VariableInfo[] {
23 new VariableInfo(id, getType(), true, VariableInfo.AT_END ),
24 };
25 }
26 }