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 ChatActionButtonTag extends javax.servlet.jsp.tagext.TagSupport 17 { 18 19 20 private String label = "Send"; 21 22 23 public ChatActionButtonTag() 24 { 25 } 26 27 public int doStartTag() 28 { 29 try 30 { 31 JspWriter out = pageContext.getOut(); 32 33 out.println("<input disabled type=\"submit\" name=\"action\" value=\"" 34 + label 35 + "\" onclick='return chat.actionButtonClicked()'>"); 36 37 } 38 catch (IOException ex) 39 { 40 return SKIP_PAGE; 41 } 42 43 return EVAL_PAGE; 44 } 45 46 50 public String getLabel() 51 { 52 return this.label; 53 } 54 55 59 public void setLabel(String label) 60 { 61 this.label = label; 62 } 63 64 } 65 | Popular Tags |