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 TagJspInclude extends TagJsp { 51 public TagJspInclude() {} 52 53 public TagJspInclude(TagContext context) { 54 super(context); 55 } 56 57 public TagInstance makeInstance(TagContext context) { 58 return new TagJspInclude(context); 59 } 60 61 public void doStartTag(String tagName, AttributeList attributes) 62 throws JspException 63 { 64 super.doStartTag(tagName, attributes); 65 PrintWriter w = context.getPrintWriter(); 66 String url = attributes.getValue("page"); 67 w.print(" pageContext.include(\""); 68 w.print(url); 69 w.print("\");"); 70 } 71 } 72 | Popular Tags |