1 28 29 package com.caucho.jsp.java; 30 31 import com.caucho.jsp.JspParseException; 32 import com.caucho.vfs.WriteStream; 33 34 import java.io.IOException ; 35 36 39 public class JspFallback extends JspContainerNode { 40 43 public void addAttribute(String name, String value) 44 throws JspParseException 45 { 46 if (name.equals("ook")) { 47 } 48 else 49 throw error(L.l("`{0}' is an invalid attribute in <jsp:fallback>", 50 name)); 51 } 52 53 58 public void printXml(WriteStream os) 59 throws IOException 60 { 61 os.print("<jsp:fallback>"); 62 printXmlChildren(os); 63 os.print("</jsp:fallback>"); 64 } 65 66 71 public void generate(JspJavaWriter out) 72 throws Exception 73 { 74 throw error(L.l("jsp:fallback is not allowed as a child of {0}", 75 getParent().getTagName())); 76 } 77 78 83 public void generateFallback(JspJavaWriter out) 84 throws Exception 85 { 86 generateChildren(out); 87 } 88 } 89 | Popular Tags |