|
Hi all,
I have a question on writing outputs to a textarea.
Here is the scenario I am running. I have a log table from
which I need to select the time, username, actionname and action
description and write into the textarea (basically this is a
readonly textarea where information is simply displayed).
I am able to write the information after the textarea. However,
I need to be able to write it within the textarea. Currently,
here is how my output is:
_______________________
Existing | |
Notes: | |
|_______________________|
Wed Mar 02 09:27:39 PST 2005 Bill AndrussRequest Saved
Action taken on Account Team tab.
Mon Feb 28 12:04:31 PST 2005 Bill AndrussNew Request Created
A new deal has been created.
I would like the above information to be displayed within the
textarea as follows:
Existing Wed Mar 02 09:27:39 PST 2005 Bill Andruss.
Notes: Request Saved.
Action taken on Account Team tab.
Mon Feb 28 12:04:31 PST 2005 Bill Andruss.
New Request Created.
A new deal has been created.
(Information other than the words 'Exisiting Notes' needs
to be within the textarea)
Any help would be greatly appreciated.
Thank you,
Bill.
Note: With the following code, I basically tried to print the
details after the textarea as I simply do not know how to
write to a textarea.
<table>
<td width="3%" align=right></td>
<td align=left valign=top> <b>Existing Notes:</td>
<TD><textarea name="existing" wrap="hard" cols="70" rows="10"
onkeypress="validateSize(this, 2000)" onchange="validateSize(this, 2000)"
READONLY></textarea></TD>
</table>
<tr>
<table>
<td width="3%" align=right></td>
<%
int logSize = actionLog.size();
if (logSize > 0){
for (int j=logSize-1; j >=0; j--){
DealStatusAction dsa = (DealStatusAction)actionLog.get(j);
String actionNm = dsa.getActionName();
String actionDate = dsa.getActionDate().toString() + "";
String memo = dsa.getMemo();
String actionPerformer = ((dsa.getLastName() == null ||
dsa.getFirstName() == null)?"":(dsa.getFirstName()+" "+dsa.getLastName()));
%>
<tr>
<tr class="grey1" align="left" valign="top"><%=actionDate%></tr>
<tr class="grey1" align="left" valign="top"><%=actionPerformer%></tr>
<tr class="grey1" align="left" valign="top"><%=actionNm%></tr>
<tr class="grey1" align="left" valign="top"><pre><%=CUtil.clean(memo)%></pre></tr>
</tr>
<%
}
}
%>
|
|
|
|
|
|
|
|