1 package com.quadcap.http.servlets.jsp; 2 3 40 41 import java.io.PrintWriter ; 42 43 import org.xml.sax.AttributeList ; 44 45 50 public class TagJspPage extends TagJsp { 51 public TagJspPage() {} 52 53 public TagJspPage(TagContext context) { 54 super(context); 55 } 56 57 public TagInstance makeInstance(TagContext context) { 58 return new TagJspPage(context); 59 } 60 61 public String getTagName() { return tagName; } 62 63 public void doStartTag(String tagName, AttributeList attributes) 64 throws JspException 65 { 66 this.tagName = tagName; 67 for (int i = 0; i < attributes.getLength(); i++) { 68 String name = attributes.getName(i); 69 String val = attributes.getValue(i).trim(); 70 if (val.length() > 0) { 71 if (val.charAt(0) == '"') val = val.substring(1); 72 if (val.charAt(val.length()-1) == '"') 73 val = val.substring(0, val.length() - 1); 74 } 75 context.addPageDirective(name, val); 76 } 77 } 78 } 79 80 | Popular Tags |