1 6 7 package com.quikj.application.web.talk.jspbeans; 8 9 import javax.servlet.http.*; 10 import javax.servlet.jsp.*; 11 import java.io.*; 12 13 17 public class ChatEmailSubjectTag extends javax.servlet.jsp.tagext.TagSupport 18 { 19 20 21 private String width; 22 23 24 public ChatEmailSubjectTag() 25 { 26 } 27 28 public int doStartTag() 29 { 30 try 31 { 32 JspWriter out = pageContext.getOut(); 33 HttpServletRequest request = (HttpServletRequest)pageContext.getRequest(); 34 35 out.print("<input type=\"TEXT\" name=\"subject\""); 36 37 if (width != null) 38 { 39 out.print (" size=\"" + width + "\""); 40 } 41 42 String value = ((ContactCenterEmailForm)(request.getAttribute("formBean"))).getSubject(); 43 44 out.println(" value=\"" + value + "\">"); 45 46 } 47 catch (IOException ex) 48 { 49 return SKIP_PAGE; 50 } 51 52 return EVAL_PAGE; 53 } 54 55 59 public String getWidth() 60 { 61 return this.width; 62 } 63 64 68 public void setWidth(String width) 69 { 70 this.width = width; 71 } 72 73 } 74 | Popular Tags |