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 ChatTextAreaTag extends javax.servlet.jsp.tagext.TagSupport 17 { 18 19 20 private String rows = "2"; 21 22 23 private String columns = "40"; 24 25 26 public ChatTextAreaTag() 27 { 28 } 29 30 public int doStartTag() 31 { 32 try 33 { 34 JspWriter out = pageContext.getOut(); 35 36 out.println("<textarea name=\"text\" rows=\"" 37 + rows 38 + "\" cols=\"" 39 + columns 40 + "\" disabled" 41 + " onkeypress=\"return chat.keyPressed(event)\"></textarea>"); 42 43 } 44 catch (IOException ex) 45 { 46 return SKIP_PAGE; 47 } 48 49 return EVAL_PAGE; 50 } 51 52 56 public String getRows() 57 { 58 return this.rows; 59 } 60 61 65 public void setRows(String rows) 66 { 67 this.rows = rows; 68 } 69 70 74 public String getColumns() 75 { 76 return this.columns; 77 } 78 79 83 public void setColumns(String columns) 84 { 85 this.columns = columns; 86 } 87 88 } 89 | Popular Tags |