1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.struts.taglib.html;
19
20 import javax.servlet.jsp.tagext.TagData;
21 import javax.servlet.jsp.tagext.TagExtraInfo;
22 import javax.servlet.jsp.tagext.VariableInfo;
23
24 /***
25 * Implementation of <code>TagExtraInfo</code> for the <b>messages</b> tag,
26 * identifying the scripting object(s) to be made visible.
27 */
28 public class MessagesTei extends TagExtraInfo {
29 /***
30 * Return information about the scripting variables to be created.
31 */
32 public VariableInfo[] getVariableInfo(TagData data) {
33 String type = "java.lang.String";
34
35 return new VariableInfo[] {
36 new VariableInfo(data.getAttributeString("id"), type, true,
37 VariableInfo.NESTED)
38 };
39 }
40 }