1 6 7 package com.quikj.application.web.talk.jspbeans; 8 9 import javax.servlet.jsp.*; 10 import java.io.*; 11 12 16 public class ChatSendButtonTag extends javax.servlet.jsp.tagext.TagSupport 17 { 18 19 20 private String label = "Send"; 21 22 23 public ChatSendButtonTag() 24 { 25 } 26 27 public int doStartTag() 28 { 29 try 30 { 31 JspWriter out = pageContext.getOut(); 32 33 out.println("<input type=\"submit\" name=\"send\" value=\"" 34 + label + "\" disabled onclick=\"return chat.sendText();\">"); 35 36 } 37 catch (IOException ex) 38 { 39 return SKIP_PAGE; 40 } 41 42 return EVAL_PAGE; 43 } 44 45 49 public String getLabel() 50 { 51 return this.label; 52 } 53 54 58 public void setLabel(String label) 59 { 60 this.label = label; 61 } 62 63 } 64 | Popular Tags |