KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > quikj > application > web > talk > jspbeans > ChatLoginAdditionalInfoTag


1 /*
2  * ChatTranscriptTag.java
3  *
4  * Created on April 4, 2004, 8:42 AM
5  */

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 /**
14  *
15  * @author amit
16  */

17 public class ChatLoginAdditionalInfoTag extends javax.servlet.jsp.tagext.TagSupport JavaDoc
18 {
19     
20     /** Holds value of property rows. */
21     private String JavaDoc rows;
22     
23     /** Holds value of property cols. */
24     private String JavaDoc cols;
25     
26     /** Creates a new instance of ChatTranscriptTag */
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 JavaDoc 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     /** Getter for property rows.
65      * @return Value of property rows.
66      *
67      */

68     public String JavaDoc getRows()
69     {
70         return this.rows;
71     }
72     
73     /** Setter for property rows.
74      * @param rows New value of property rows.
75      *
76      */

77     public void setRows(String JavaDoc rows)
78     {
79         this.rows = rows;
80     }
81     
82     /** Getter for property cols.
83      * @return Value of property cols.
84      *
85      */

86     public String JavaDoc getCols()
87     {
88         return this.cols;
89     }
90     
91     /** Setter for property cols.
92      * @param cols New value of property cols.
93      *
94      */

95     public void setCols(String JavaDoc cols)
96     {
97         this.cols = cols;
98     }
99     
100 }
101
Popular Tags