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 TagJspForward extends TagJsp { 51 public TagJspForward() {} 52 53 public TagJspForward(TagContext context) { 54 this.context = context; 55 } 56 57 public TagInstance makeInstance(TagContext context) { 58 return new TagJspForward(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.println(" if (true) {"); 68 w.print(" pageContext.forward(\""); 69 w.print(url); 70 w.println("\");"); 71 w.println(" return;"); 72 w.println(" }"); 73 } 74 } 75 | Popular Tags |