| 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 ChatLoginAdditionalInfoTag extends javax.servlet.jsp.tagext.TagSupport  18 { 19 20 21 private String rows; 22 23 24 private String cols; 25 26 27 public ChatLoginAdditionalInfoTag() 28 { 29 } 30 31 public int doStartTag() 32 { 33 try 34 { 35 JspWriter out = pageContext.getOut(); 36 HttpServletRequest request = (HttpServletRequest)pageContext.getRequest(); 37 38 out.print("<textarea name=\"addnl\""); 39 40 if (cols != null) 41 { 42 out.print (" cols=\"" + cols + "\""); 43 } 44 45 if (rows != null) 46 { 47 out.print (" rows=\"" + rows + "\""); 48 } 49 50 out.println (">"); 51 52 String value = ((ContactCenterRestrictedAccessForm)(request.getAttribute("formBean"))).getAdditionalInfo(); 53 out.println(value + "</textarea>"); 54 55 } 56 catch (IOException ex) 57 { 58 return SKIP_PAGE; 59 } 60 61 return EVAL_PAGE; 62 } 63 64 68 public String getRows() 69 { 70 return this.rows; 71 } 72 73 77 public void setRows(String rows) 78 { 79 this.rows = rows; 80 } 81 82 86 public String getCols() 87 { 88 return this.cols; 89 } 90 91 95 public void setCols(String cols) 96 { 97 this.cols = cols; 98 } 99 100 } 101 | Popular Tags |